How to delete non-relevant commits #22888
-
Question regarding commits that float around after an --amend:
3. It’s not your day, you made a spelling mistake in README.md
Now visit issue #164. It will have 3 ‘back-references’ to those individual commits. However, only the last one is relevant, since you’ve been amending. How do I delete those commits that are still floating around? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There isn’t a way for you to manually delete those commits. You would have to contact private support at https://github.com/contact to have them removed. For this reason, I typically don’t recommend adding issue references in commit messages themselves. Rather, I recommend adding the issue references to the PR body when a series of commits addresses or fixes an issue. I hope that helps! |
Beta Was this translation helpful? Give feedback.
There isn’t a way for you to manually delete those commits. You would have to contact private support at https://github.com/contact to have them removed.
For this reason, I typically don’t recommend adding issue references in commit messages themselves. Rather, I recommend adding the issue references to the PR body when a series of commits addresses or fixes an issue.
I hope that helps!