我可以使用 gitg 仅查看一个文件/目录的更改吗?

发布于 2024-09-24 22:18:08 字数 113 浏览 1 评论 0原文

这让我发疯,因为这在 gitk 上非常容易(只需 gitk the/file),但我无法在 gitg 上做到这一点,我真的很喜欢查看历史记录。

这不是一个有据可查的工具。

This is driving me crazy, as it's very easy on gitk (just gitk the/file) but I am not able to do it on gitg which I really like to see the history.

It's not a well documented tool.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夜巴黎 2024-10-01 22:18:08

简短的回答,不,它不能这样做(在 v0.0.6 中)。

gitg 声明:

gitg 的目标不是成为高级
允许访问每个
Git 通过图形化的功能
界面。不过,它将尝试
纳入可能的共同行动
需要对
命令行(如暂存、取消暂存、
恢复并提交)

您最好的选择是命令行 git loggitk

Short answer, no it can't do that (in v0.0.6).

gitg claims:

gitg does not aim to be an advanced
tool that allows access to every
feature of Git through a graphical
interface. However, it will try to
incorporate common actions that might
require multiple actions on the
command line (like staging, unstaging,
reverting, and committing)

Your best bet is the command line git log <file> or gitk <file>

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文