Is there a way to undo/redo a conflict resolution in VS2013/TFS?
Accidentally clicked "Use Local Changes" when really meant to do "Resolve Conflicts". Since "Use Local Changes" was clicked the changes are all intact. Is there a way to force VS2013/TFS to resolve conflicts again so this time we can merge?
On the command line, a simple "git merge --abort" will do this for you. In case you've made a mistake while resolving a conflict and realize this only after completing the merge, you can still easily undo it: just roll back to the commit before the merge happened with "git reset --hard " and start over again.
To show all conflicts in your workspace, choose Get All Conflicts. A message that begins with: n Conflict(s) appears. If a lot of time has passed since you made changes to files in your workspace, new conflicts might have occurred. To refresh the Resolve Conflicts window, choose Refresh.
The dialog to resolve conflict will appear when you try to check-in
Assuming you have no other pending changes than the merge (always check in or shelve any pending changes before you do a merge), you can either undo all changes and do the merge again, or undo the changes of a single file and just merge that file. Do to the latter:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With