Skip to content

Instantly share code, notes, and snippets.

@ifnull
Created June 23, 2016 22:37
Show Gist options
  • Save ifnull/2ea1cc53649b70c8a64ca364fb70b265 to your computer and use it in GitHub Desktop.
Save ifnull/2ea1cc53649b70c8a64ca364fb70b265 to your computer and use it in GitHub Desktop.
Git refresh develop from master
# Delete your local develop
git checkout master
git branch -D develop
# Recreate your local develop, based on origin's master
git pull origin master
git checkout -b develop
# Push and overwrite the sloppy develop on the origin
git push origin develop --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment