Overwrite master branch with current branch in git
To overwrite master branch with current branch
git checkout current_branch
git merge -s ours master
git checkout master
git merge current_branch
Written by Swathi
Related protips
1 Response
Why would you do that?
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#