a7851578

github 可以访问已删除 fork 信息

  •  1
     
  •   a7851578 · Jul 25, 2024 · 3415 views
    This topic created in 688 days ago, the information mentioned may be changed or developed.
    6 replies    2024-07-26 13:53:42 +08:00
    cexll
        1
    cexll  
       Jul 25, 2024
    看了发现需要 change file 才可以,我 fork 的一个 repo ,但是我没有 change file ,main repo 删除了,我 fork 的 也跟着被删除了,如何找到/查看被删除的 repo
    0o0O0o0O0o
        2
    0o0O0o0O0o  
       Jul 25, 2024 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  
       Jul 25, 2024 via iPhone
    V2EX 偶尔有人问误提交了秘密怎么删除一个 commit ,我也会提醒应该让 key 失效或者趁没有 fork 删除 repository 再删除 .git 再重建,也是同样的原理。。。
    ysc3839
        4
    ysc3839  
       Jul 25, 2024 via Android
    因为 GitHub 的 fork 和主仓库是共用一个 git 仓库的,往 fork 仓库里提交,在主仓库也能访问到对应 commit 。这种情况要不然等 GitHub 自动清理已删除的 commit ,要不然联系 GitHub 删除。
    artiga033
        5
    artiga033  
       Jul 26, 2024 via Android
    这是 feature ,github 只要推了 commit 就一直保存的 要么删库要么找客服
    GrayXu
        6
    GrayXu  
       Jul 26, 2024
    @cexll #1 你没改动哪来的新 commit hash 。再说没改动的话,也不存在需要保护的信息
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2918 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 04:11 · PVG 12:11 · LAX 21:11 · JFK 00:11
    ♥ Do have faith in what you're doing.