Accepted answer

see this answer: (send upvotes there)

right click on the file -> replace with -> index

(old versions might say file in git index rather than index)

or if you want to undo all files that have changed, right click on the project -> team -> reset.. -> select the 'hard' radio button -> press the reset button


one work round is to select the file, right click > replace with > local history...

select the last commit you did on that file. you can then check it looks ok then replace it in your workspace

then finally do a new commit that is effectively undoing the change you made, if you have to.

Related Query

More Query from same tag