---
title: "Discussion on \"Two-way sync between Jira and Git: the 32-line function was the easy part\" | Hashnode"
description: "Discussion on \"Two-way sync between Jira and Git: the 32-line function was the easy part\". Gherkin Studio keeps the Gherkin scenarios on a Jira story in step with a .feature file in GitHub, GitLab.com or Bitbucket Cloud. It works both ways, and it never overwrites text a person hasn't seen."
url: "https://hashnode.com/posts/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part/6b1053f8a4aebbe4e317c030"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Two-way sync between Jira and Git: the 32-line function was the easy part](https://gherkinstudio.hashnode.dev/two-way-sync-between-jira-and-git-the-32-line-function-was-the-easy-part?utm_source=hashnode&utm_medium=feed)

Gherkin Studio keeps the Gherkin scenarios on a Jira story in step with a .feature file in GitHub, GitLab.com or Bitbucket Cloud. It works both ways, and it never overwrites text a person hasn't seen.

18h ago · 11 min read · gherkinstudio.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#testing](https://hashnode.com/tag/testing)
-   [#api](https://hashnode.com/tag/api)
-   [#jira](https://hashnode.com/tag/jira)

## Written by

[Miftode Vasilică](https://hashnode.com/@miftodevasilica47)

@miftodevasilica47 · Romania

  
[View profile](https://hashnode.com/@miftodevasilica47)

Solo developer of Gherkin Studio, a BDD app for Jira Cloud built on Atlassian Forge.

Solo developer of Gherkin Studio, a BDD app for Jira Cloud built on Atlassian Forge. I write about Gherkin, Cucumber reports, Git sync and Forge limits. https://gherkinstudio.com

## Responses 1

Markdown supported · ⌘↵ to post

[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?
