How to clone a git tree or branch? How to use the git clone command to clone a specific tree or branch of the git repository. Using the tree or branch url directly gives a fatal error.