Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
No, all remote branches are cloned. They just have the prefix origin/remote_branch . But only the master -> origin/master branch becomes tracked .
To make another tracked branch, switch to a remote branch and create a local branch. All this can be done with one command:
Where local_branch_name is the name of the branch being created, origin/remote_branch_name is the full name of the remote branch; local_branch_name can be named the same as remote_branch_name for convenience. After executing the command, you will have a local_branch_name branch that will track the remote_branch_name branch on the server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question