Answers for "git checkout filename"

0

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"
Posted by: Guest on February-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language