Answers for "git replace master with branch"

2

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
Posted by: Guest on May-24-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language