Is it possible to commit and push changes from one branch to another?
Assume I committed changes in BRANCH1 and want to push them to BRANCH2.
From BRANCH1, is it valid to do:
git push origin BRANCH2
And then reset BRANCH1?
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.
That will almost work.
When pushing to a non-default branch, you need to specify the source ref and the target ref:
Or