【问题标题】:Is it possible to know if a file existed in a folder of a repository in git? [duplicate]是否有可能知道文件是否存在于 git 存储库的文件夹中? [复制]
【发布时间】:2020-02-10 21:37:00
【问题描述】:

我想知道是否可以使用 git 命令或使用 github 工具知道文件夹中是否存在文件。

我使用 git 日志进行了检查,它显示了提交日志,但没有关于哪些文件受到影响的信息。

【问题讨论】:

标签: git github


【解决方案1】:

这将允许您查看给定分支中的目录。

git ls-tree -d origin/master:<remote_dir><remote_subdir>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-04-16
    • 2013-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-14
    相关资源
    最近更新 更多