posts: 完善删除Git提交记录的文章并添加图片

添加了关于从GitHub完全删除孤立提交的详细步骤,包括如何提交支持工单的说明和示例模板。同时补充了相关的操作截图
This commit is contained in:
二叉树树
2026-01-26 16:39:05 +08:00
parent 401cd9c126
commit dd4f3178fb
8 changed files with 72 additions and 14 deletions

View File

@@ -13,12 +13,12 @@
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "posts/mac-gal.md", "file": "posts/del-git-commit.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "mac-gal" "title": "del-git-commit"
} }
} }
] ]
@@ -94,7 +94,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "posts/mac-gal.md", "file": "posts/del-git-commit.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@@ -104,7 +104,7 @@
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-coming-in", "icon": "links-coming-in",
"title": "mac-gal 的反向链接列表" "title": "del-git-commit 的反向链接列表"
} }
}, },
{ {
@@ -113,12 +113,12 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "posts/mac-gal.md", "file": "posts/del-git-commit.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
}, },
"icon": "links-going-out", "icon": "links-going-out",
"title": "mac-gal 的出链列表" "title": "del-git-commit 的出链列表"
} }
}, },
{ {
@@ -142,13 +142,13 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "posts/mac-gal.md", "file": "posts/del-git-commit.md",
"followCursor": false, "followCursor": false,
"showSearch": false, "showSearch": false,
"searchQuery": "" "searchQuery": ""
}, },
"icon": "lucide-list", "icon": "lucide-list",
"title": "mac-gal 的大纲" "title": "del-git-commit 的大纲"
} }
} }
] ]
@@ -171,6 +171,13 @@
}, },
"active": "ea8fe4fe54e0109e", "active": "ea8fe4fe54e0109e",
"lastOpenFiles": [ "lastOpenFiles": [
"assets/images/del-git-commit-15.png",
"assets/images/del-git-commit-14.png",
"assets/images/del-git-commit-13.png",
"assets/images/del-git-commit-12.png",
"assets/images/del-git-commit-11.png",
"assets/images/del-git-commit-10.png",
"posts/mac-gal.md",
"posts/self-host-matrix.md", "posts/self-host-matrix.md",
"posts/gal.md", "posts/gal.md",
"posts/del-git-commit.md", "posts/del-git-commit.md",
@@ -179,11 +186,6 @@
"assets/images/del-git-commit-7.png", "assets/images/del-git-commit-7.png",
"assets/images/del-git-commit-6.png", "assets/images/del-git-commit-6.png",
"assets/images/del-git-commit-5.png", "assets/images/del-git-commit-5.png",
"assets/images/del-git-commit-4.png",
"assets/images/del-git-commit-3.png",
"assets/images/del-git-commit-2.png",
"assets/images/del-git-commit-1.png",
"assets/images/del-git-commit.png",
"2024-11-20.md", "2024-11-20.md",
"posts/fuwari.md" "posts/fuwari.md"
] ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -111,4 +111,60 @@ git remote add origin https://github.com/你的用户名/你的仓库名.git
git push -u origin main -f git push -u origin main -f
``` ```
此时,大功告成。自此时起,所有用户都已经看不到那个你不想让别人看到的文件与提交记录了,就像它从未存在过 此时,大功告成。自此时起,所有用户都已经看不到那个你不想让别人看到的文件与提交记录了,就像它从未存在过
*真的吗?*
如果说,有些人仍留存着你仓库提交的完整 **commit id** 那他们可以通过该链接访问到那个你想隐藏的提交只不过Github会弹出警告 **This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.(此提交不属于此仓库的任何分支,可能属于仓库外的某个分支副本。)**
```bash
https://github.com/{user}/{repo}/commit/{commit id}
```
如果想完全从Github上删除你需要向Github提交支持工单 [GitHub 支持](https://support.github.com/)
点击我的工单
![](../assets/images/del-git-commit-10.png)
新工单
![](../assets/images/del-git-commit-11.png)
从我拥有或控制的存储库中删除数据
![](../assets/images/del-git-commit-12.png)
删除其他数据
![](../assets/images/del-git-commit-13.png)
接下来填写工单,你可以参考我的主题与正文(生成与 OpenAI ChatGPT 5.2
```bash
Title:Request to Remove an Orphaned Commit URL Containing Sensitive Information
Hello GitHub Support Team,
I am writing to request the removal of the following commit page from GitHubs website:
https://github.com/{user}/{repo}/commit/{commit id}
This commit has already been removed from my local repository history and I have force-pushed the updated history to the GitHub remote repository. As a result, the commit is now orphaned and no longer reachable from any branch or tag.
However, the commit page itself is still accessible via its direct URL. Unfortunately, this commit contained sensitive information, and I would like to request that GitHub remove this URL from the website to prevent further access.
Please let me know if you need any additional information or verification from my side to proceed with this request.
Thank you very much for your time and assistance.
Best regards,
{user}
```
![](../assets/images/del-git-commit-14.png)
最后点击 **Continue** 新版工单系统会自动使用Copilot为你生成一些帮助信息等他BB完我们继续创建即可
马上你就会收到一封来自Github的邮件表示Github已经收到您的工单。耐心等待Github的下一步回复即可
![](../assets/images/del-git-commit-15.png)