zeqk
12/30/2019 - 9:28 PM

Git overwrite branch with another branch

Git overwrite branch with another branch

# overwrite master with contents of seotweaks branch (seotweaks > master)
git checkout seotweaks    # source name
git merge -s ours master  # target name
git checkout master       # target name
git merge seotweaks       # source name