2

如果我执行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,当我看到文件内容时,文件名被截断

4

0 回答 0