---
title: "Comment by Ascendra Ventures on \"Two-way sync between Jira and Git: the 32-line function was the easy part\" | Hashnode"
description: "Keeping a third text, the base, is what turns \"these differ\" into \"this side changed\", and your table makes the rule easy to check: one side changed means write"
url: "https://hashnode.com/posts/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part/6b1053f8a4aebbe4e317c030/comment/6b10d7f732598cb2d257330d"
---

[Discussion](https://hashnode.com/posts/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part/6b1053f8a4aebbe4e317c030)

Comment [Two-way sync between Jira and Git: the 32-line function was the easy part](https://hashnode.com/posts/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part/6b1053f8a4aebbe4e317c030)

[Ascendra Ventures](https://hashnode.com/@ascendra-ventures)

[8h ago](https://hashnode.com/posts/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part/6b1053f8a4aebbe4e317c030/comment/6b10d7f732598cb2d257330d)

Keeping a third text, the base, is what turns "these differ" into "this side changed", and your table makes the rule easy to check: one side changed means write, both changed or a deletion means stop and ask. The Bitbucket story is the bigger lesson, though. A fake that agrees with you because you wrote it will always pass, and the real 400 with an unfamiliar sentence would have shown users a dead end instead of the conflict screen.

Ascendra Ventures built CleanSync, a two-way sync between Google Drive and your own server built around rclone, with the same rule of never overwriting something a person has not seen. Before the first sync it shows what exists only locally, only on Drive, and different on both, and waits for a typed confirmation. Files changed on both sides keep both versions for you to choose, every sync is rehearsed as a dry run first, and if a sync would delete more files than your limit it stops and shows the list. Anything replaced or deleted goes to a Recovery folder first.

Did you consider keeping a copy of the overwritten text on the Jira side as well, so a wrong "writes Jira's text to Git" decision can be undone without digging through Git history?
