Here is the brute-force approach, which also removes the configuration of the repository.
Brute-force approach
-
Remove local repository with all history (same as physically delete
.git
):rm -rf .git
-
Recreate the Git repo with only the current content.
git init git add . git commit -m "Initial commit"
-
Add origin and force push to GitHub.
git remote add origin <github-uri> git push -u --force origin master
Interactive rebase
Follow Attlasian rewriting the history
No comments:
Post a Comment