Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #move #commit #master #branch
ADD COMMENT
Topic
Name
5+6 =