Git / Push to wrong branch

git checkout wrong_branch
git revert commitsha1
git revert commitsha2
git checkout right_branch
git cherry-pick commitsha1
git cherry-pick commitsha2

More details can be found here:
http://stackoverflow.com

No comments:

Post a Comment