【发布时间】:2015-11-10 12:11:35
【问题描述】:
在我的工作流程中,我经常运行以下一对命令:
$ git status
M README.txt
M some/long/file/name
$ git diff some/long/file/name
有什么方法可以快速键入/使用_shortcat 获取长文件名而不复制它的名称(此操作需要使用鼠标,它不像键入那么快)?
可能类似于git diff $2,其中$2 是状态列表中第二个更改的文件...?
【问题讨论】:
-
Git "shortcut" for filepath? 的可能重复项
标签: git command-line-interface git-diff git-status