How To Clear All GitHub Commit Records?
- New orphan branch
git checkout --orphan latest_branch
- Add the required files to the staging area
git add -A
git commit -m "..."
- Delete the main branch
git branch -D main
- Rename the current latest_branch branch to main branch
git branch -m main
- Finally, push to the remote repository
git push -f origin main