# Obsidian Github Integration for Sync and Version Control

**URL:** <https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369>\
**Category:** Workflows & Templates\
**Created:** [September 30, 2020, 7:12am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369 "2020-09-30T07:12:45Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![hieu](https://forum.obsidian.md/user_avatar/forum.obsidian.md/hieu/32/80251_2.png) [@hieu](https://forum.obsidian.md/u/hieu)\
**Post date:** [October 19, 2020, 12:04am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/21 "2020-10-19T00:04:06Z")

</div>

🔥 perfect, thank you!!

---

<div class="post-metadata">

**Author:** ![Erisred](https://forum.obsidian.md/user_avatar/forum.obsidian.md/erisred/32/6273_2.png) [@Erisred](https://forum.obsidian.md/u/Erisred)\
**Post date:** [October 19, 2020, 12:58am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/22 "2020-10-19T00:58:07Z")

</div>

@hieu - I’m very much not a developer, myself…  
Are you looking for help with Git/Github, or are you familiar with that part of the process? There’s a lot to unpack there, so I’d rather know your level of comfort before I walk through the process.

For the Obsidian part, I go to settings and set the ‘New link format’ to ‘Absolute path in vault’ \*Disclaimer - some folks don’t like this as much, because the link format is not as _clean_ as wikilinks. It is a standard link format, though, and works across platforms very well.

 ![Capture](https://forum.obsidian.md/uploads/default/original/2X/a/a784e420f056507f4b4ff2e4471c1b36173878e9.png)

Then, using the Github app on Android, I can open the repository and navigate the files. The links work in the app like they do in Obsidian. This is the ‘view-only’ interface I mentioned.

I don’t do much editing on mobile, mostly because it’s messy. I’ve edited straight through the Gihub app, and I have Markor installed - it will also work in a pinch. I could not get Git journal to do what I wanted.  
Good luck!

---

<div class="post-metadata">

**Author:** ![egoexpress](https://forum.obsidian.md/user_avatar/forum.obsidian.md/egoexpress/32/4850_2.png) [@egoexpress](https://forum.obsidian.md/u/egoexpress)\
**Post date:** [October 19, 2020, 6:43am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/23 "2020-10-19T06:43:53Z")

</div>

After using some self-written scripts myself I switched to

> **[simonthum/git-sync](https://github.com/simonthum/git-sync)**
>
> Safe and simple one-script git synchronization. Contribute to simonthum/git-sync development by creating an account on GitHub.

It handles the sync great, adds sanity checks, adds news files etc. It even runs fine on Windows using the bash shell that comes included in the Git client distribution.

---

<div class="post-metadata">

**Author:** ![kimstacks](https://forum.obsidian.md/user_avatar/forum.obsidian.md/kimstacks/32/518_2.png) [@kimstacks](https://forum.obsidian.md/u/kimstacks)\
**Post date:** [December 8, 2020, 4:37am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/24 "2020-12-08T04:37:08Z")

</div>

Thanks! This is useful

---

<div class="post-metadata">

**Author:** ![jonschke](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/e99b99/32.png) [@jonschke](https://forum.obsidian.md/u/jonschke)\
**Post date:** [December 25, 2020, 9:30am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/25 "2020-12-25T09:30:20Z")

</div>

I am on windows and tried to let the git-sync script run with the windows task-scheduler every X Minutes. But eventhough for a very short pereiod of time a git-bash windows opens the script doesnt run. When I start the script manually (double click, with cmd or git-bash) it pushes and commits correctly.

Has anyone worked out a good solution to automate this process on windows?

Edit: I found my problem. I forgot to include the directory where the script has to run in the task scheduler

But still one question is left: Now a git bash window is opened every X minutes and it syncs my files. But is there a way to let this process run without opening a window of git-bash?

---

<div class="post-metadata">

**Author:** ![msamedic](https://forum.obsidian.md/user_avatar/forum.obsidian.md/msamedic/32/22850_2.png) [@msamedic](https://forum.obsidian.md/u/msamedic)\
**Post date:** [March 17, 2021, 4:38pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/26 "2021-03-17T16:38:49Z")

</div>

@jonschke Did you find a solution for this? let me know! [medicmsa@gmail.com](mailto:medicmsa@gmail.com)

---

<div class="post-metadata">

**Author:** ![mangosteel](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mangosteel](https://forum.obsidian.md/u/mangosteel)\
**Post date:** [March 28, 2021, 3:22pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/27 "2021-03-28T15:22:23Z")

</div>

I would also like to know.

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [March 28, 2021, 4:40pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/28 "2021-03-28T16:40:22Z")

</div>

@mangosteel @msamedic I think this might help: [Setting up Obsidian Git on Windows for the tech uninitiated (with images)](https://forum.obsidian.md/t/setting-up-obsidian-git-on-windows-for-the-tech-uninitiated-with-images/15297)

---

<div class="post-metadata">

**Author:** ![mangosteel](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mangosteel](https://forum.obsidian.md/u/mangosteel)\
**Post date:** [March 29, 2021, 6:23pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/29 "2021-03-29T18:23:08Z")

</div>

Thank you @argentum, I have tried watching multiple different tutorials on making this work and my first few tries I was trying to combine their methods to no avail. I had given up until my computer crashed today and I lost hours of work on a note that had been replaced entirely with some kind of colored special character (red dots). Luckily, I have ManicTime screenshots so I will be able to transcribe my work.

Let this be a warning to those placing important information in these notes. After that, I decided I needed backups and since version history is so valuable, and since people seemed to be able to get this git backup working with the new plugin, I figured I’d give this one last go.

The link you provided, followed exactly step by step, works like a charm. And it’s clearly explained. Very simple.

I think I will also be setting up a local automatic backup of my vault. Thanks again.

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [March 29, 2021, 7:09pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/30 "2021-03-29T19:09:24Z")

</div>

Backups are extremely important! There is also a new `File Recovery` feature in case something happens too:

> [@On another topic](https://forum.obsidian.md/t/14652/1):
>
> There is now a new File Recovery core plugin that keeps snapshots of your most recently edited files for recovery. This can be used to restore lost data in cases where a computer crash causes a file to be corrupted, or when a plugin malfunction causes a file to be wiped.

---

<div class="post-metadata">

**Author:** ![mangosteel](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mangosteel](https://forum.obsidian.md/u/mangosteel)\
**Post date:** [March 29, 2021, 7:24pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/31 "2021-03-29T19:24:57Z")

</div>

Unfortunately the File Recovery feature was the reason I thought I was safe in the first place. This feature was only able to recover a single save from a few days ago which is of no use to me. I do not think it’s fully functional yet (or at all, in my case).

---

<div class="post-metadata">

**Author:** ![argentum](https://forum.obsidian.md/user_avatar/forum.obsidian.md/argentum/32/7733_2.png) [@argentum](https://forum.obsidian.md/u/argentum)\
**Post date:** [March 29, 2021, 7:33pm UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/32 "2021-03-29T19:33:54Z")

</div>

@mangosteel that doesn’t sound right. `File Recovery` creates snapshots of your files every 5 minutes by default (unless you changed the settings). Since this is getting off-topic for this thread, feel free to open a #bug-reports or #get-help thread for this.

---

<div class="post-metadata">

**Author:** ![pablovarela](https://forum.obsidian.md/user_avatar/forum.obsidian.md/pablovarela/32/28263_2.png) [@pablovarela](https://forum.obsidian.md/u/pablovarela)\
**Post date:** [April 2, 2022, 7:54am UTC](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369/33 "2022-04-02T07:54:09Z")

</div>

When I copied the script from the forum all the quotes had been changed for curly quotes and that was causing it not to work. Maybe that’s the cause?

[Previous page](https://forum.obsidian.md/t/obsidian-github-integration-for-sync-and-version-control/6369.md?page=1)
