git: How to forget a recorded resolution

Updated . Posted . Visible to the public.

If you recorded Show archive.org snapshot a bad fix for a conflict, you can tell git to forget that bad resolution:

git rerere forget your_file.rb

Afterwards, the badly resolved file will still be in your working directory. To get it back with confict markers, say:

git checkout -m your_file.rb

Resolve the conflict again, properly now. ;)

Profile picture of Arne Hartherz
Arne Hartherz
Last edit
Marius Schuller
License
Source code in this card is licensed under the MIT License.
Posted by Arne Hartherz to makandra dev (2014-01-30 16:13)