Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reset to a file

git checkout HEAD -- my-file.txt
# ... which will update both the working copy of my-file.txt and
# its state in the index with that from HEAD.
# -- basically means: treat every argument after this point as a file name.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #reset #file
ADD COMMENT
Topic
Name
9+3 =