How do I:
-
Create a local branch from another branch (via
git branchorgit checkout -b). -
Push the local branch
to the remote repository (i.e. publish), but make it
trackable so thatgit pullandgit pushwill work.
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.
In Git 1.7.0 and later, you can checkout a new branch:
Edit files, add and commit. Then push with the
-u(short for--set-upstream) option:Git will set up the tracking information during the push.