Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git command line discard changes

git clean -dxn .  # dry-run to inspect the list of files-to-be-removed
git clean -dxf .  # REMOVE ignored/untracked files (in the current directory)
git checkout -- . # ERASE changes in tracked files (in the current directory)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #command #line #discard
ADD COMMENT
Topic
Name
1+2 =