Answers for "git replace branch with another"

0

git replace branch with another

# overwrite master with contents of feature branch (feature > master)
git checkout feature    # source name
git merge -s ours master  # target name
git checkout master       # target name
git merge feature       # source name
Posted by: Guest on April-29-2021

Code answers related to "git replace branch with another"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language