Check out a remote branch in git

Posted Over 13 years ago. Visible to the public.

If you would like to checkout the branch groups, you can simply say this in recent versions of Git:

git fetch origin
git checkout groups

This will automatically track origin/groups from a local branch groups.

In older Git versions you need to say this:

git fetch origin
git checkout --track origin/groups
Last edit
About 13 years ago
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-08-25 12:15)