remove deleted commit that references an issue

て烟熏妆下的殇ゞ 提交于 2019-12-03 01:50:44

In general, you cannot remove a commit from Github yourself.

As pointed out in the answers to the other question linked as a possible duplicate, you can only reference new commits (which is what you've already done).

Running git gc in your clone will not help either, as this has nothing to do with the repo on Github.

Github run their own gc every now and then (the schedule and/or triggering events are not made public). GC'ing that commit might be prevented by that reference in the issue though, or the reference might persist (then 404'ing) even if the commit gets GC'd.

Usually, you would just ignore this kind of thing.

If it is a real problem though (e.g. sensitive data being accessible), you can contact Github Support and ask them to remove the reference and commit.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!