Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

discard unstaged changes git

#For all unstaged files in current working directory use:
git checkout -- .
#For a specific file use:
git checkout -- path/to/file/to/revert
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discard #unstaged #git
ADD COMMENT
Topic
Name
1+8 =