Answers for "git move master on new branch commit"

0

git move change from master to new branch

git stash						//you can stash the changes in the master branch .
git checkout -b newbranchname	//then checkout the branch
git stash pop					//and pop the changes here
Posted by: Guest on November-22-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