When I do a ‘git pull’, I have conflict with the head commit. So I did a ‘git rebase –abort’
Can I ‘save’ my commit to a “patch” and then do a git pull?
What I want to emulate is:
- I did not commit, but I did a ‘git stash’ instead
- Do a git pull to avoid any merge error
So I need somehow to ‘turn back the clock’. Is that possible with git?
Your
7826b2patch will still cause a conflict when it’s applied after pulling, but you can do the following:Another workflow is also possible:
The second workflow relies on the fact that Git keeps the
7826b2commit in the reflog (you can think of it as the recycle bin) even though you reset the changes it introduced with the first line.