FreeKB - Git git checkout command
Git - git checkout command

The git checkout command can be used to download one or more files from the origin Git repository to a directory on your local PC. Similarly, the git pull and git fetch commands can be used to clone files in an origin repository to your local branch (master). In this example, foo.txt will be cloned from the origin Git repository to your branch.

git checkout 'path/to/foo.txt'

 

The git checkout command can also be used to switch to another branch.

git checkout feat/logging

 

Which should return something like this.

Switched to a new branch 'feat/logging'

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 58185 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |