In Git Extensions, the user can, when cloning a repository, specify which branch (possibly other than master
) should be checked out in the resulting clone.
How can I do that at the command line?
In Git Extensions, the user can, when cloning a repository, specify which branch (possibly other than master
) should be checked out in the resulting clone.
How can I do that at the command line?
The answer, as often, is in the man pages (in the
git-clone
man page, here):So you want to run
where
<name>
stands for the name of the branch that you want checked out in your clone of<repository>
.Example