Git

How To Discard All Changes in Git

$ git stash -u

Use git stash to tuck away all staged changes, adding -u flag to include unstaged changes. If you want them later, you can get them back. If not, just do a:

$ git stash drop

That’ll get rid of them forever.

Standard

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.