How does one add a local branch from that of another developer? My colleague’s branch is not out on origin.
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, add a “remote” (like a nickname for a repository URL) for your colleague’s repository:
Then fetch all the branches from that repository into remote tracking branches called
refs/remotes/colleague/<branch-name>(which can usually be abbreviated tocolleague/<branch-name>):Now create (and switch to) a local branch called
foowhich tracks your colleague’s branch calledfoowith: