Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git replace master with branch

git checkout better_branch
git merge --strategy=ours --no-commit master
git commit -m "Replacing master branch with better_branch"
git checkout master
git merge better_branch
git push origin master
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #replace #master #branch
ADD COMMENT
Topic
Name
5+3 =