Created
October 7, 2015 23:04
-
-
Save iambmelt/42c5398f58cf736435b3 to your computer and use it in GitHub Desktop.
Nuke Git History
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
# Remove the current .git | |
rm -rf .git | |
# Reconstruct the repo | |
git init | |
git add . | |
git commit -m "Initial commit" | |
# Push it | |
git remote add origin <uri> | |
git push -u --force origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment