# \[Obsidian Git\] Sync on your ios without any extra app

**URL:** <https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639>\
**Category:** Workflows & Templates\
**Created:** [May 29, 2023, 1:46pm UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639 "2023-05-29T13:46:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamma](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@adamma](https://forum.obsidian.md/u/adamma)\
**Post date:** [May 29, 2023, 1:46pm UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/1 "2023-05-29T13:46:02Z")

</div>

I believe that this might be the easiest way to backup IOS with only Obsidian Git plugin.  
❗ You don’t need to download any extra app on your devices.

- Sync repo
  - Use `https:` protocol to clone the git repo
  - Compress your repo and send it to your iphone (Air Drop or other ways)
  - Open `Obsidian` on iphone, and create a vault with the same name as your repo, e.g. `repoA`
  - Uncompress your repo on iphone and copy the whole folder, e.g. `repoA`
  - Go to the path `on my iphone -> Obsidian`, you will see that the `repoA` is here. Now, paste your repo here, and choose **Replace to all**

- Config Git Auth
  - Install and Enable the `Obsidian Git` plugin
  - Go to github (I recommend you to use `Personal access tokens`, since the Password will fail sometimes)
  - `Setting -> Developersetting -> Tokens (classic) -> generate new token`
  - ❗Please copy and store your token somewhere, cause it only shows once.
  - Paste your `Personal access tokens` to the `Obsidian Git Setting-> Commit Author -> password/personal access tokens`

- Done, enjoy your free sync with git 🎉

---

<div class="post-metadata">

**Author:** ![Delmar](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/c67d28/32.png) [@Delmar](https://forum.obsidian.md/u/Delmar)\
**Post date:** [September 2, 2023, 10:22pm UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/2 "2023-09-02T22:22:26Z")

</div>

Hi Adamma, thank you very much for your sharing. But Idk if I missed something or not, it doesn’t work on my iPhone. I think I followed all the steps except for the first one ( \* Use `https:` protocol to clone the git repo). Also, idk if what scope I should choose when creating PAT (classic). Could you kindly help me? Thank you again!

---

<div class="post-metadata">

**Author:** ![Ghgsrt](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/g/3be4f8/32.png) [@Ghgsrt](https://forum.obsidian.md/u/Ghgsrt)\
**Post date:** [September 12, 2023, 3:54pm UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/3 "2023-09-12T15:54:09Z")

</div>

Every time the phone pushes it completely overrides everything I had in the .obsidian folder. How do I prevent that? I was hoping this would move over my themes/css and plug-ins too.

---

<div class="post-metadata">

**Author:** ![BrySmi](https://forum.obsidian.md/user_avatar/forum.obsidian.md/brysmi/32/52580_2.png) [@BrySmi](https://forum.obsidian.md/u/BrySmi)\
**Post date:** [October 19, 2023, 7:20pm UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/4 "2023-10-19T19:20:42Z")

</div>

Probably need a .gitignore file, but I haven’t walked through that. I am not sure which files you would want to protect locally …

---

<div class="post-metadata">

**Author:** ![infoseek](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/i/58f4c7/32.png) [@infoseek](https://forum.obsidian.md/u/infoseek)\
**Post date:** [January 8, 2024, 9:09am UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/5 "2024-01-08T09:09:42Z")

</div>

this works, thanks very much, compare to the method with an third app such us ish or working copy or a shell, this is much simple.

---

<div class="post-metadata">

**Author:** ![regres](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/e68b1a/32.png) [@regres](https://forum.obsidian.md/u/regres)\
**Post date:** [June 6, 2024, 12:58am UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/6 "2024-06-06T00:58:39Z")

</div>

Do we need to install git before we can sync via git?

---

<div class="post-metadata">

**Author:** ![vaibes](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/v/82dd89/32.png) [@vaibes](https://forum.obsidian.md/u/vaibes)\
**Post date:** [March 27, 2025, 4:15am UTC](https://forum.obsidian.md/t/obsidian-git-sync-on-your-ios-without-any-extra-app/60639/7 "2025-03-27T04:15:20Z")

</div>

Thank you for this! This is the furthest I’ve gotten to get Git to somewhat work with iOS - I’ve been messing around with ISH with no luck. I was able to clone my Git repo just fine in Obsidian Git plugin, but whenever it tries to push or pull to Git, I get a “buffer error.”  
I’m not finding much on google about this - anyone have any ideas on how to fix this?
