Emacs magit 命令显示分支中已修改文件的名称
在分支上,我希望有效地运行此命令:
git diff --name-only master...
使用Magit。像上面的分支上修改了已修改的文件名称的适当击键是什么?
While on a branch, I'm looking to run effectively this command:
git diff --name-only master...
using magit. What is the appropriate keystroke to see the names of files that have been modified on a branch like the above?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
没有一个
magit
命令可以执行此操作。There is not a
magit
command to do this.在 .gitalias 中,我包括
然后在 git-status 窗口中输入“:” dnom,它运行 magit-git-command 并显示当前分支中与 master 不同的文件。
In .gitalias I include
Then in the git-status window type ":" dnom, which runs magit-git-command and displays the files that differ in the current branch from master.
在 magit 状态页面上,键入 d 表示 diff,r 表示范围,然后输入“master”作为要比较的分支。
它将显示所有差异,技巧是,在 Magit-diff 缓冲区上按 Shfit+Tab(绑定到“magit-section-cycle-global”)来折叠部分并仅显示文件名。
On the magit status page, type d for diff, r for range, and then enter "master" for the branch to diff with.
It will show all the diffs, the trick is, on the Magit-diff buffer press Shfit+Tab (which is bind to "magit-section-cycle-global") to collapse the sections and show only the file names.