Skip to content

Instantly share code, notes, and snippets.

@aeongdesu
Last active November 15, 2020 09:12
Show Gist options
  • Save aeongdesu/22c19b5f682d6f5bff0727b2e2323530 to your computer and use it in GitHub Desktop.
Save aeongdesu/22c19b5f682d6f5bff0727b2e2323530 to your computer and use it in GitHub Desktop.
Delete your history from repo
# Remove the history from .git
rm -rf .git
# recreate the repos from the current content only
git init
git add .
# tmi) git commit --allow-empty-message --message ""
git commit -m "initial commit"
# push to the github remote repos ensuring you overwrite history
# ex) git remote add origin https://github.com/KeepSOBP/KeepSOBP.git
git remote add origin https://github.com/:User/:Repo.git
git push -u --force origin master
# Check repo!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment