Skip to content

Instantly share code, notes, and snippets.

@yuriburger
Created September 18, 2019 14:48
Show Gist options
  • Save yuriburger/cf4dee16c6627230fdcbeea068d0b34b to your computer and use it in GitHub Desktop.
Save yuriburger/cf4dee16c6627230fdcbeea068d0b34b to your computer and use it in GitHub Desktop.
[clear commit history] clear git commit history #git
git checkout --orphan temp_branch
git add -A
git commit -am "Initial commit"
git branch -D master
git branch -m master
git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment