Quantcast
Viewing all articles
Browse latest Browse all 42

Answer by Joshua Kunzmann for How do I discard unstaged changes in Git?

If you aren't interested in keeping the unstaged changes (especially if the staged changes are new files), I found this handy:

git diff | git apply --reverse

Viewing all articles
Browse latest Browse all 42

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>