1
Is there any way to delete a comment from a commit? Or is there an invisible file that saves those comments and logs? (either in the files of the pc or in the repository on the website).
It can be erase all or one by one.
I have an important repository on github that has some wrong comments and I need to take them, I researched and saw that it has how to return commits, but then would delete the changes.
I have tried to clone my own repository and upar again and it comes with the comments.
The comments are part from the commit, you can’t just remove them and keep the same commit. The only way to get rid of them is to rewrite the history: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History - remembering that rewriting the history can affect people who have already cloned your repository before
– hkotsubo
Thanks buddy, it worked, when giving git log appears the modifications I wanted, but there is a problem, the site remains the same, would you know what to do? I know I didn’t find it in the doc, but I’m looking.
– Luck dev
If "on the site" you mean "on Github", it’s because you have to sync your changes, probably with
git push -f
- but be careful, as I have already said, this command can affect people who have cloned your repository before: understand the reason by reading here and here– hkotsubo
no problem, my rep this private
– Luck dev
The only problem is that you can’t change the first commit, my git has 8, you could only open 7, and if you put HEAD~0 opens a screen with "noop"
– Luck dev
I found, just put as --root. However every time you have the change ends up deleting some files, at the end n this being effective
– Luck dev