Commit cannot be deleted. Even if you delete the branch, the commit record will not be deleted, so you cannot erase all branch history. Of course, if you just want to make the branch look prettier, you can consider using git rebaseto compress the commit and then force push the branch
Delete this branch and create a new branch with the same name
Commit cannot be deleted. Even if you delete the branch, the commit record will not be deleted, so you cannot erase all branch history.
Of course, if you just want to make the branch look prettier, you can consider using
git rebase
to compress the commit and then force push the branch