📜  git replace branch with another - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:30.735000             🧑  作者: Mango

代码示例1
# 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