Created
March 2, 2017 03:41
-
-
Save CaroManel/3c4bb446a0a95433b1ca154d4a771e0a to your computer and use it in GitHub Desktop.
Reset remote git repository to delete all commits
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
rm -r .git | |
git init | |
(create files) | |
git add -A | |
git commit -m 'Initial commit' | |
git remote add origin <url> | |
git push --force --set-upstream origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment