Delete all Git Commit History
问题 I am trying to fetch a repo from Github, revert a tag in past, push it to another remote with deleting all history. I can do everything with below except deleting all commit logs. What I am missing? git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 git remote add stash ssh://git@myserver:7999/myproject/user-repo.git git push --force stash master 回答1: I thought what you want is a repo like a new one, so deleting the .git/ directory and re-initing it will