git reset --hard HEAD
to reset the local directory to match the latest commit and discard all unstaged changes.git reset --hard HEAD
git reset --hard HEAD # Discards all unstaged changes
Subscribe to get resources directly to your inbox. You won't receive any spam! ✌️