在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版