Answers for "git undo removal of uncomitted changes"

3

git revert uncommitted changes

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

# Remove all untracked files and directories.
# '-f' is force, '-d' is remove directories.
git clean -fd
Posted by: Guest on February-11-2021
11

git delete changes

git clean -df
git checkout -- .
Posted by: Guest on May-23-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language