obsidian-git: [Bug]: Mobile version not syncing
Describe the bug
On mobile version (android) it doesn’t detect latest commits in git.
It shows that it fetched latest, and it’s up to date. But it doesn’t really sync at all.
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I
)
There is conflict in sync that says
CheckoutConflictError: Your local changes to the following files would be overwritten by checkout: .obsidian/community-plugins.json, .obsidian/core-community-plugins.json, .obsidian/core-plugins.json
Steps to reproduce
Android doesn’t sync latest data from git
Expected Behavior
No response
Addition context
No response
Operating system
Android
Installation Method
None
Plugin version
2.20.5
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 2
- Comments: 18 (3 by maintainers)
As a workaround I always end up with using git from termux.
I’ve simliar issues - obsidian-git is often even not able to perform a merge local changes when is behind & same time ahead remote (even when they’re no conficts; yes I do have
Pull changes before push
enabled) 😦 Using git command line I just go withgit pull
, confirm merge title, and voilà@bearoxo is it executable?
chmod +x /data/data/com.termux/files/home/obsidian_notes.sh
?I used this way. I’m using termux-job-scheduler , as there doesn’t need to be a termux session active to perform cron jobs.
no. but, I tried removing folder, following instructions you provided, to make new obsidian vault, install git plugin, insert my github username, and token. and then clone repo. which when I do, it clones everything as it should. But later, after that, if I make changes to notes on my PC, and push (and I see on website it is pushed and newer), then on mobile, it fetches, and says it’s up-to-date. Even when trying to exit few times, reboot phone, same thing. It’s like, it thinks, it pulled latest, and says it’s up-to-date.
Yea, I ended up using termux to sync in background as obsidian sync is not good.
Yes, changed, commited and uploaded. It sync on PC obsidian, but doesn’t pull on android obsidian. From android obsidian it can push only.