Created
September 18, 2019 14:48
-
-
Save yuriburger/cf4dee16c6627230fdcbeea068d0b34b to your computer and use it in GitHub Desktop.
[clear commit history] clear git commit history #git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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