Skip to content

Instantly share code, notes, and snippets.

@teocomi
Created February 25, 2016 18:10
Show Gist options
  • Save teocomi/396c04320dd77db69393 to your computer and use it in GitHub Desktop.
Save teocomi/396c04320dd77db69393 to your computer and use it in GitHub Desktop.
Remove git history
//source http://stackoverflow.com/questions/9683279/make-the-current-commit-the-only-initial-commit-in-a-git-repository
rm -rf .git
git init
git add .
git commit -m "Initial commit"
git remote add origin <github-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