Skip to content

Instantly share code, notes, and snippets.

@Nikita-schetko
Created January 20, 2017 19:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nikita-schetko/caf0823292c39bf30e5958b52fdfc041 to your computer and use it in GitHub Desktop.
Save Nikita-schetko/caf0823292c39bf30e5958b52fdfc041 to your computer and use it in GitHub Desktop.
How to replace master branch in git, entirely, from another branch?
git checkout seotweaks
git merge -s ours master
git checkout master
git merge seotweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment