Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/33.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在git签出中显示文件名-p_Git - Fatal编程技术网

在git签出中显示文件名-p

在git签出中显示文件名-p,git,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 !importa

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 checkout
git add
,但没有找到任何东西


谢谢

您使用的是哪个git版本?使用Git 1.9.4,文件路径显示在文件范围行(
@…@…
)上方。事实上,我更新了Git,它们显示出来了。现在不知道该怎么处理这个问题。我想添加一个答案以接受,但我目前正在使用手机。当我回到家里,我会看看添加了哪个版本。你以前用过哪个版本?我用的是1.9.2版