I have deleted the entire commit history of my repo by both of the following methods:
- how to delete all commit history in github?
- https://www.willandskill.se/en/deleting-your-git-commit-history-without-removing-repo-on-github-bitbucket/
Although the history is not visible on the repo page anywhere, when I try and access using an old commit link i.e. https://github.com/username/repo/blob/number/filename I am able to see the changes. The only scenario is when I change visibility of the repo when it gives 404. How do I prevent all old changes from being accessible for a public repo?