How to delete all commits history in GitHub?

Jun Santilla - Jan 29 '22 - - Dev Community

Checkout to main branch
git checkout --orphan latest_branch

Add all the files from main branch
git add -A

Commit the changes
git commit -am "Initial commit"

Delete the main branch
git branch -D main

Rename the current branch to main
git branch -m main

Force update your GitHub repository
git push -f origin main

. . . . . . . . . .
Terabox Video Player