(Warning: Stale branches can cause issues - See wiki for help)
Figure: When trying to undo a change you will sometimes get errors. The answer is to exit Visual Studio and use the command line
Figure: use ‘git reset --hard HEAD’ to throw away all your uncommitted changes
Note: A common cause of Visual Studio failing to undo changes is an incomplete .gitignore file.