如果执行git show f12345a --stat
,则会得到以下输出:
commit f12345a
Author: This Guy <this.guy@email.com>
Date: Mon Jul 1 14:00:59 2019 -0500
A commit
hola/mundo/hola/mundo/hola/mundo/hola/mundo/hola/mundo/hola/mundo/imaginary-very-long-file-name.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
但是如果我执行git show f12345a --stat | grep -E "*"
(基本上是回显所有内容),我会得到:
commit f12345a
Author: This Guy <this.guy@email.com>
Date: Mon Jul 1 14:00:59 2019 -0500
A commit
.../hola/mundo/hola/mundo/hola/mundo/imaginary-very-long-file-name.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
所以问题本身就是为什么我的文件名被截断? (如何避免)?
执行git show f12345a --stat > exit.txt
时也会应用此截断,当我看到文件内容的文件名被删除时