how to push local created commit to another branch in git 1

how to push local created commit to another branch in git

With Git Extensions you can do something like this:
(Create if not existing and) checkout new branch, where you want to push your commit.
Select the commit from the history, which should get commited & pushed to this branch.
Right click and select Cherry pick commit.
Press Cherry pick button afterwards.

Here is what the above code is Doing:
1. git checkout -b new_branch
2. git cherry-pick commit_hash
3. git push origin new_branch

Similar Posts