commit to another branch
git stash
git checkout other-branch
git stash pop
commit to another branch
git stash
git checkout other-branch
git stash pop
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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us