Skip to content

Instantly share code, notes, and snippets.

@Kennyl
Created February 25, 2017 09:03
Show Gist options
  • Save Kennyl/ede80d85cb94cc449ea42a4324583076 to your computer and use it in GitHub Desktop.
Save Kennyl/ede80d85cb94cc449ea42a4324583076 to your computer and use it in GitHub Desktop.
Clean git like nothing again.
git checkout --orphan tmp
git add .
git commit -m "init"
git push --force --set-upstream origin master
git branch -d master
git branch -m tmp master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment