如何在 git 中列出版本控制的文件?
我想列出 git 存储库根目录中的版本控制文件。要在 bazaar 中执行相同的操作,请运行:
bzr ls --versioned --non-recursive
How do I do this in git?
I would like to list the versioned files in the root directory of a git repository. To do the same thing in bazaar, you run:
bzr ls --versioned --non-recursive
How do I do this in git?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您准确描述要显示的列表,将会更有帮助。从 bzr 文档猜测,我想你想要这样的东西。
这列出了当前目录中当前位于
HEAD
版本中的文件的名称,该名称应该接近您所要求的内容。It would be more helpful if you described exactly what listing you want to show. Guessing from the bzr document, I imagine that you want something like this.
This lists the names of files in the current directory which are currently in the
HEAD
revision, which should be close to what you are asking for.我不知道“bzr ls --versioned --non-recursive”的作用,但我怀疑它是
或
I do not know what "bzr ls --versioned --non-recursive" does, but I suspect that it is either
or