Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

reset a file to last commit git

git checkout <hash> -- file1/to/restore file2/to/restore
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reset #file #commit #git
ADD COMMENT
Topic
Name
4+6 =