Posted by The TechMentor in git
on Apr 7th, 2014 | Comments Off on 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 -- .
Comments are closed.
Search
Social
About Me
Jay Everson has over 20 years experience supporting production infrastructure and software R&D Labs. He has 12+ years experience in management and has also spent time in Software Engineer, Infrastructure Architect and Team Lead roles.