Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git checkout filename

git checkout README     # would normally discard uncommitted changes
                        # to the _file_ "README"
git checkout master     # would normally switch the working copy to
                        # the _branch_ "master"
git checkout -- master  # discard uncommitted changes to the _file_ "master"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #checkout #filename
ADD COMMENT
Topic
Name
9+6 =