Git command to revert all current changes
This probably one of the best command for me to use this week, reset all changes in my current branch
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories. (`-f` is `force`, `-d` is `remove directories`)
git clean -fd
Comments