diff --git a/src/content/.obsidian/workspace.json b/src/content/.obsidian/workspace.json index 8d17b901c..a82e00321 100644 --- a/src/content/.obsidian/workspace.json +++ b/src/content/.obsidian/workspace.json @@ -13,12 +13,12 @@ "state": { "type": "markdown", "state": { - "file": "posts/mac-gal.md", + "file": "posts/del-git-commit.md", "mode": "source", "source": false }, "icon": "lucide-file", - "title": "mac-gal" + "title": "del-git-commit" } } ] @@ -94,7 +94,7 @@ "state": { "type": "backlink", "state": { - "file": "posts/mac-gal.md", + "file": "posts/del-git-commit.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -104,7 +104,7 @@ "unlinkedCollapsed": true }, "icon": "links-coming-in", - "title": "mac-gal 的反向链接列表" + "title": "del-git-commit 的反向链接列表" } }, { @@ -113,12 +113,12 @@ "state": { "type": "outgoing-link", "state": { - "file": "posts/mac-gal.md", + "file": "posts/del-git-commit.md", "linksCollapsed": false, "unlinkedCollapsed": true }, "icon": "links-going-out", - "title": "mac-gal 的出链列表" + "title": "del-git-commit 的出链列表" } }, { @@ -142,13 +142,13 @@ "state": { "type": "outline", "state": { - "file": "posts/mac-gal.md", + "file": "posts/del-git-commit.md", "followCursor": false, "showSearch": false, "searchQuery": "" }, "icon": "lucide-list", - "title": "mac-gal 的大纲" + "title": "del-git-commit 的大纲" } } ] @@ -171,6 +171,13 @@ }, "active": "ea8fe4fe54e0109e", "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/gal.md", "posts/del-git-commit.md", @@ -179,11 +186,6 @@ "assets/images/del-git-commit-7.png", "assets/images/del-git-commit-6.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", "posts/fuwari.md" ] diff --git a/src/content/assets/images/del-git-commit-10.png b/src/content/assets/images/del-git-commit-10.png new file mode 100644 index 000000000..c97fb7934 Binary files /dev/null and b/src/content/assets/images/del-git-commit-10.png differ diff --git a/src/content/assets/images/del-git-commit-11.png b/src/content/assets/images/del-git-commit-11.png new file mode 100644 index 000000000..07c0e549b Binary files /dev/null and b/src/content/assets/images/del-git-commit-11.png differ diff --git a/src/content/assets/images/del-git-commit-12.png b/src/content/assets/images/del-git-commit-12.png new file mode 100644 index 000000000..994d49033 Binary files /dev/null and b/src/content/assets/images/del-git-commit-12.png differ diff --git a/src/content/assets/images/del-git-commit-13.png b/src/content/assets/images/del-git-commit-13.png new file mode 100644 index 000000000..7c75db195 Binary files /dev/null and b/src/content/assets/images/del-git-commit-13.png differ diff --git a/src/content/assets/images/del-git-commit-14.png b/src/content/assets/images/del-git-commit-14.png new file mode 100644 index 000000000..cf32697d1 Binary files /dev/null and b/src/content/assets/images/del-git-commit-14.png differ diff --git a/src/content/assets/images/del-git-commit-15.png b/src/content/assets/images/del-git-commit-15.png new file mode 100644 index 000000000..06b4a2c17 Binary files /dev/null and b/src/content/assets/images/del-git-commit-15.png differ diff --git a/src/content/posts/del-git-commit.md b/src/content/posts/del-git-commit.md index 05c84b615..20df0e80a 100644 --- a/src/content/posts/del-git-commit.md +++ b/src/content/posts/del-git-commit.md @@ -111,4 +111,60 @@ git remote add origin https://github.com/你的用户名/你的仓库名.git git push -u origin main -f ``` -此时,大功告成。自此时起,所有用户都已经看不到那个你不想让别人看到的文件与提交记录了,就像它从未存在过 \ No newline at end of file +此时,大功告成。自此时起,所有用户都已经看不到那个你不想让别人看到的文件与提交记录了,就像它从未存在过 + +*真的吗?* + +如果说,有些人仍留存着你仓库提交的完整 **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 GitHub’s 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) \ No newline at end of file