# GIT for Notes?

**URL:** <https://discourse.joplinapp.org/t/git-for-notes/4783>\
**Category:** Support\
**Created:** [19 December 2019 22:11 UTC](https://discourse.joplinapp.org/t/git-for-notes/4783 "2019-12-19T22:11:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlevison](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/mlevison/32/1905_2.png) [@mlevison](https://discourse.joplinapp.org/u/mlevison)\
**Post date:** [19 December 2019 22:11 UTC](https://discourse.joplinapp.org/t/git-for-notes/4783/1 "2019-12-19T22:11:27Z")

</div>

Not a bug - just an open question. Would Joplin allow me to use GIT for synchronization vs dropbox. I far prefer the versioning support of GIT over dropbox (which effectively relies on magic - I do know how works but my versions are date based not semantic).

---

<div class="post-metadata">

**Author:** ![laurent](https://avatars.discourse-cdn.com/v4/letter/l/ce7236/32.png) [@laurent](https://discourse.joplinapp.org/u/laurent)\
**Post date:** [19 December 2019 22:31 UTC](https://discourse.joplinapp.org/t/git-for-notes/4783/2 "2019-12-19T22:31:45Z")

</div>

You could set that up yourself quite easily. Just export your data at regular intervals to a git repo on your computer, and commit/push. That’s what I do with a simple cron script.

---

<div class="post-metadata">

**Author:** ![mlevison](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/mlevison/32/1905_2.png) [@mlevison](https://discourse.joplinapp.org/u/mlevison)\
**Post date:** [20 December 2019 14:40 UTC](https://discourse.joplinapp.org/t/git-for-notes/4783/3 "2019-12-20T14:40:34Z")

</div>

Ok. Instead of an export is it possible just version control the Joplin directory? Or is there some funkiness at the file level that won’t play well with GIT.

---

<div class="post-metadata">

**Author:** ![CalebJohn](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/calebjohn/32/356_2.png) [@CalebJohn](https://discourse.joplinapp.org/u/CalebJohn)\
**Post date:** [20 December 2019 19:51 UTC](https://discourse.joplinapp.org/t/git-for-notes/4783/4 "2019-12-20T19:51:50Z")

</div>

Joplin stores notes in an sqlite database, it’s technically possible to sync with git but it would resync the entire database for every file change which would be no good. Alternatively you can sync to your file system and use git to sync those files. But if you encrypt the sync target then you’ll again have the issue where version control becomes almost pointless (because an entire note file will need to be resynced for every small change).

That said, the simplest solution for you would probably be set a filesystem sync target (no encryption) and then set up some kind of cron job to do git pushing from there.
