T
T
tostershmoster2022-03-24 10:21:33
git
tostershmoster, 2022-03-24 10:21:33

How to remove an old comment with a fix from an issue?

I made a mistake in the description of the commit and pushed it to github. More or less like this

comment description #1

Locally renamed comment description via
git rebase -i HEAD~
reword

but for some reason it was not renamed, but a new one appeared with the correct name.
deleted the old one
git rebase -i HEAD~
drop

started git push --force -u origin master
and now there are two identical commits with different names in issue
старое название #1
новое название #1

but there are no old commits in git log
How can I remove the old one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Kuznetsov, 2022-03-24
@tostershmoster

Don't call commit messages comments. What you describe as the name of the commit is actually just the header of the commit message.
Real comments on the github are easily deleted, since they are not stored in the repository.
Github shows you the whole history of changes in the commit history, but this is only visible in its database, don't worry about it. You have already removed the commits with errors from the repository history.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question