Skip to content

Instantly share code, notes, and snippets.

@emedinaa
Created March 10, 2016 14:37
Show Gist options
  • Save emedinaa/76653074950ac0d810a5 to your computer and use it in GitHub Desktop.
Save emedinaa/76653074950ac0d810a5 to your computer and use it in GitHub Desktop.
Github - Clear commits history
git rm -rf .git
git init
git remote add origin https://github.com/heiswayi/myproject.git
git remote -v
git add --all
git commit -am "Initial commit"
git push -f origin master
//Referencia
http://heiswayi.github.io/github-delete-commits-history.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment