[Bug]: wrong order in git backup
Describe the bug
Merge conflicts when doing Git: Create backup in a 2 machine scenario
Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)
No response
Steps to reproduce
- 2 instances of obsidian vault on different machines (A , B), each with the same obsidian-git settings (apart from machine ID)
- edit the same file on machine A and B
-
Git: Create backupon machine A -
Git: Create backupon machine B
results in merge conflict.
Expected Behavior
no merge conflict.
This could be achieved by a git command sequence within Git: Create backup:
-
git commit -
git pull [--rebase] -
git push
Addition context
No response
Operating system
macOS
Installation Method
None
Plugin version
2.24.1
I don't think this is an issue with the plugin. You just create a merge conflict, which the plugin can't solve more than git. You can set rebase to be used when pulling in the settings.
Thanks for taking the time looking into this!
I'd just like to have configuration in which I can save changes from both machines (as in the above scenario) in one action (per machine) without creating a merge conflict. I just tried using the "rebase" setting; unfortunately this does not change that I get an error message, however, it seems not to create a merge conflict...
The sequence
- edit file
example.mdon machine A - edit file
example.mdon machine B (different edit) - Git: Create backup on machine A
- git commit on machine B
-
git pull --rebaseon machine B -
git pushon machine B
works for me without a merge conflict and without an error (given that an automatic merge is possible).
Please share your error messsage. So you are editing the file in two different places, right?