-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Force pull / reset --hard HEAD #702
Comments
I don't think |
same problem here.. |
I actually see now that the command "CAUTION: Discard all changes" already exists. After calling that command, the pull command should work. |
@Vinzent03 I don't think ignoring the changes would help if the conflicting changes are already committed. Having a hard reset option would be a great feature. |
What exactly do you mean with the conflicting changes are already committed. Doesn't this mean the merge commit is already done and the pull therefore ended successfully. |
@Vinzent03 thanks for responding.
How does a hard reset help? Hope it's clear. |
This is extremely annoying. It would be great if you could add the hard reset/ @mubanga90 how do you fix this currently. Recreating the repo also deletes my settings. |
@mgrottenthaler I've gotten a lot better at always syncing and closing obsidian when switching. When I do forget When it doesn't I don't recreate the repo:
But like I said I only had to that once or twice in the past months |
After reading this, I suspect that it would also prevent to get into this situation if there was a good working way to merge changes from both sides. I made a custom 'sync' command with the extension 'better command palette' which aims at that to some extent (doing pull, commit, push), but of course I am also running into conflicts frequently on mobile. Maybe using merge via #572 would solve a lot of that? |
One workaround: #340 (comment) |
Would be super helpful to have the options to do a
git pull --force
that way when my phone and PC get out of sync I could easily fix things on my PC and get my phone back in sync without me having to remove the whole vault from my phone and cloning it again.Seems like some others are also looking for this feature:
#616
Update: as @Vinzent03 mentioned it should not be
git pull --force
instead it should probably do:The text was updated successfully, but these errors were encountered: