Is it possible to commit and push changes from one branch to another.
Assume I commited changes in BRANCH1 and want to push them to BRANCH2<
I got a bad result with git push origin branch1:branch2 command:
In my case, branch2 is deleted and branch1 has been updated with some new changes.
Hence, if you want only the changes push on the branch2 from the branch1, try procedures below:
branch1: git add .branch1: git commit -m 'comments'On branch1: git push origin branch1
On branch2: git pull origin branch1
On branch1: revert to the previous commit.