Answers for "add commit of one branch onto another git"

6

commit to another branch

git stash
git checkout other-branch
git stash pop
Posted by: Guest on February-28-2020
0

git put commit on different branch

git checkout existingbranch
git merge master
git checkout master
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.
git checkout existingbranch
Posted by: Guest on May-07-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language