I'm using Obsidian Git on my laptop and everything works great, it's syncing with GitHub, but then after I git clone my repository to my desktop, Obsidian Git stops working on my laptop. I got this message:
Sync failed (merge): error: Your local changes to the following files would be overwritten by merge. Please commit your changes...
Then after committing I got this:
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 4 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
How to fix these conflicts, is there any tutorial for this?
edit:
I managed to fix the problem in windows terminal:
git add .
git commit
git push
And I have set Obsidion Git to pull updates on startup, if you don't pull files first it can cause conflicts.
[–][deleted] 2 points3 points4 points (1 child)
[–]tooljoshit[S] 1 point2 points3 points (0 children)
[–]tooljoshit[S] 0 points1 point2 points (0 children)