Answer the question
In order to leave comments, you need to log in
How to push changes from local branch A to remote branch B?
I worked on a computer on branch A, but I was blind and changes had to be made on branch B.
Can I somehow switch to a branch with the transfer of local changes, or push from local A to remote B?
Answer the question
In order to leave comments, you need to log in
1) Commit your changes to branch A, checkout to branch B, shard your commit to branch B and push it
https://git-scm.com/docs/git-cherry-pick
2) Easier. Move to branch B locally, merge changes from branch A into it and push it.
The second option only works if there is nothing extra in branch A that you should not push to the server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question