Skip to content

Instantly share code, notes, and snippets.

@michaelkeevildown
Created June 13, 2016 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelkeevildown/164497d2fdf366a6d95ac4a79ce94cfc to your computer and use it in GitHub Desktop.
Save michaelkeevildown/164497d2fdf366a6d95ac4a79ce94cfc to your computer and use it in GitHub Desktop.
Git Overwrite
# branch_name = New branch not MASTER e.g. new_dev
git checkout {branch_name}
git merge -s ours master
git checkout master
git merge {branch_name}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment