Do you know these important git commands?
  v1.0 Posted at 23/05/2014 6:08 AM by Tiago Araujo

Git Reset – Discard your local changes and revert to your last Commit​

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. See http://adamstephensen.com/2014/05/13/update-your-gitignore/​ for more information.

Related rules

    Do you feel this rule needs an update?

    If you want to be notified when this rule is updated, please enter your email address:


    Note: Social Media login for Yotpo is not working in IE or Safari, please use Chrome. We are waiting for Yotpo to fix it.