Earlier I did an interactive rebase to fix some comments on an old commit message on a GitHub repository.
The commands I used were:
git rebase -i "commitId^"
git commit --amend -m "New message"
git push --force
However, the old commit was linked to an issue on GitHub (by having a link to the issue in the commit message) and consequently the commit showed up in the issue.
When the force push was pushed, it did not remove the old commit from the issue
I clicked on commit link in the issue, and it lead me to the commit on GitHub and showed a message at the top
How can these commits be deleted from GitHub?
I have run git log --reflog
to see if they were listed commits in that log but they are not. This might be because the original repository was deleted and re-cloned since I updated the commit message