Skip to content

Home

Discard uncommitted changes

Discards all uncommitted changes to the current branch.

git reset --hard HEAD

# Examples
git reset --hard HEAD
# Discards all unstaged changes

More like this

Start typing a keyphrase to see matching snippets.