I was trying to split my work into multiple commits. I have done this:
git add --patch my_file
# accepted, rejected, manually edited many hunks
# --->
# now my silly mistake comes
git add my_file
git commit -m "some commit message"
I shouldn't have add that file as my changes are already on the staging index. Can I go back to that state (marked as --->
above)?