Answers for "move commit s to new branch"

1

move branch to a commit

git checkout master
git reset --hard 1258f0d0aae
Posted by: Guest on May-02-2021
0

move commit from master to 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 December-02-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language