Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #revert #uncommitted
ADD COMMENT
Topic
Name
8+1 =