【问题标题】:Is it possible to share a link to a specific folder / directory in a public GitHub repository?是否可以共享公共 GitHub 存储库中特定文件夹/目录的链接?
【发布时间】:2022-11-24 02:22:33
【问题描述】:

我知道一个人可以获得一个特定的永久链接文件在公共 GitHub 存储库上(如here 所述)。

但是,是否有可能获得指向特定目录的永久链接?具体来说,我想在以下公共 GitHub 存储库中共享指向以下目录 (power_analysis) 的永久链接:https://github.com/Social-Body-Lab/stress_adaptation_and_motor_memory/tree/main/power_analysis

我的理解是,这可能会根据未来的提交而改变,但我想要一个指向该文件夹/目录的永久链接,我可以在研究预注册中共享(发布后无法更改)。

在此先感谢您的帮助!

【问题讨论】:

  • 它会如何根据未来的提交而改变?

标签: github


【解决方案1】:

查看 Github UI 时,可以使用'y' shortcut to link to a specific version。对问题中的树执行此操作会导致 https://github.com/Social-Body-Lab/stress_adaptation_and_motor_memory/tree/2cb95b7c1651a35ec3ff44d50df8bdc1db282aeb/power_analysis 链接到与 master 分支头部的当前提交关联的树。

【讨论】:

    猜你喜欢
    • 2023-04-09
    • 1970-01-01
    • 2021-01-19
    • 2015-07-09
    • 2022-11-20
    • 1970-01-01
    • 2015-09-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多