Discards all uncommitted changes to the current branch.
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
Git, Branch
Discards all untracked changes to the current branch.
Git, Branch
Prints the current branch name.
Git, Branch
Copies a file from another branch to the current branch.