>

Git: Revert from Uncommitted Changes

# Revert changes to modified files.
git reset --hard

# Remove all untracked files and directories.
git clean -fd

If you want to revert the changes only in current working directory, use

git checkout -- .
banner ad

Comments are closed.