Skip to content

Instantly share code, notes, and snippets.

@iambmelt
Created October 7, 2015 23:04
Show Gist options
  • Save iambmelt/42c5398f58cf736435b3 to your computer and use it in GitHub Desktop.
Save iambmelt/42c5398f58cf736435b3 to your computer and use it in GitHub Desktop.
Nuke Git History
# 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