V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
a7851578
V2EX  ›  信息安全

github 可以访问已删除 fork 信息

  •  1
     
  •   a7851578 · 44 天前 · 2045 次点击
    这是一个创建于 44 天前的主题,其中的信息可能已经有所发展或是发生改变。
    6 条回复    2024-07-26 13:53:42 +08:00
    cexll
        1
    cexll  
       44 天前
    看了发现需要 change file 才可以,我 fork 的一个 repo ,但是我没有 change file ,main repo 删除了,我 fork 的 也跟着被删除了,如何找到/查看被删除的 repo
    0o0O0o0O0o
        2
    0o0O0o0O0o  
       44 天前 via iPhone
    最早意识到这个问题是因为一次删除了分支,但是该分支包含的一个 commit 的页面我没关闭,鬼使神差地 F5 一下,发现还能访问。

    后来出现过利用 GitHub 可以伪造用户头像和 ID 的特性冒充 linus 的 commit ,印象中是在那之后 GitHub 才为这类 commit 添加了 "This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository." 的提示。我记得后来还出现过尤雨溪版本。

    在第一个时间点之后,当我希望保持私密时,我都会选择 import 到 private repository https://github.com/new/import 而不是 fork 了。
    0o0O0o0O0o
        3
    0o0O0o0O0o  
       44 天前 via iPhone
    V2EX 偶尔有人问误提交了秘密怎么删除一个 commit ,我也会提醒应该让 key 失效或者趁没有 fork 删除 repository 再删除 .git 再重建,也是同样的原理。。。
    ysc3839
        4
    ysc3839  
       44 天前 via Android
    因为 GitHub 的 fork 和主仓库是共用一个 git 仓库的,往 fork 仓库里提交,在主仓库也能访问到对应 commit 。这种情况要不然等 GitHub 自动清理已删除的 commit ,要不然联系 GitHub 删除。
    artiga033
        5
    artiga033  
       43 天前 via Android
    这是 feature ,github 只要推了 commit 就一直保存的 要么删库要么找客服
    GrayXu
        6
    GrayXu  
       43 天前
    @cexll #1 你没改动哪来的新 commit hash 。再说没改动的话,也不存在需要保护的信息
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1058 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:23 · PVG 07:23 · LAX 16:23 · JFK 19:23
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.