I'm not too familiar with Git terms so please use more common terms with explanation. I'm using Github Desktop, which I have already commit into my branch. Now I want to open pull request to master, but before I do that, I use the option "update from Master" first to get all the changes from the master, so that when I do the pull and merge, I will not get any conflicts on the master.
When I do update from Master, I got some conflicts. As usual, I go and resolve that conflict. But then I realised that I resolve the conflicts incorrectly, and I want to "reset" the state of files like the beginning of the conflicts so I can do over. I don't know what to do at this point.
- I have tried to
git stash
all the changes so I can "update from Master" again, but thegit stash
failed. Andgit stash
never failed before on me. (fatal: git-write-tree: error building trees Cannot save the current index state
). - I have tried to
git reset
but it seems nothing resetting. And what I know is git reset is actually undoing my latest commit so I'm afraid my commit now messing up with the updated and uncommitted code from the master.
What I'm supposed to do to "reset" the state of files like the beginning of conflicts so I can do conflict resolve over? Thanks.