Skip to content

Instantly share code, notes, and snippets.

@AsaAyers
Last active August 29, 2015 13:56
Show Gist options
  • Save AsaAyers/9345879 to your computer and use it in GitHub Desktop.
Save AsaAyers/9345879 to your computer and use it in GitHub Desktop.
  • e675f89...a7822d3 master -> master (forced update)
  1. Create a local branch where master belongs.

    git checkout -b fixmaster e675f89

a. If someone pushed to master between the last time you pulled and now you'll need to go to github to get the full hash. Go to https://github.com/<owner>/<repo>/commit/e675f89 and it'll have the full hash on the page.

`git fetch origin <full hash of e675f89>`
`git checkout -b fixmaster e675f89`
  1. git push -f origin fixmaster:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment