在git checkout -p中显示文件名

时间:2015-01-23 13:44:57

标签: git

git checkout -p BranchX使用--patch格式显示不同的块:

示例:

@@ -733,7 +733,7 @@ LICENSE URL ... https://github.com/typeplate/bower/blob/master/license.txt
 }
 .c .Utility--text-red,
 .c .Utility--text-red a {
-  color: #9f251a !important;
+  color: #ca171e !important;
 }
 .c .Utility--text-gold,
 .c .Utility--text-gold a {
Apply this hunk to index and worktree [y,n,q,a,d,/,K,j,J,g,e,?]? 

如何让此命令显示文件路径(和名称)?

我在git-checkoutgit-add的文档中搜索过,但我找不到任何内容。

由于

0 个答案:

没有答案