【发布时间】:2018-10-10 18:02:51
【问题描述】:
是否可以在没有本地克隆的情况下搜索远程存储库中的文件?例如the clone URL for this project,我可以在主分支中搜索具有特定名称的文件吗?包含某个字符串的文件?
git-ls-remote 似乎是kind of close to what I want,但将其与git-ls-files 或git-grep 结合不起作用(SO post showing how to use these for the same task on a local instance of a repository)
git ls-remote https://github.com/Vincit/objection.js.git ls-files '*/mixin.js'
只是返回命令提示符,根本不打印任何输出、错误或其他。
【问题讨论】:
标签: git