Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.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 show列出文件中的更改_Git - Fatal编程技术网

使用git show列出文件中的更改

使用git show列出文件中的更改,git,Git,git show SHA#1将提供提交SHA#1的所有更改。我只是好奇,是否有一种方法可以使用git show来更改特定文件的列表(过滤掉git show SHA#1的结果以获取文件的更改) 我知道我可以使用git diff来实现这一点,只需添加您的文件名: git show <sha1> <filename> git秀 有关如何指定要显示的对象的详细信息,请参阅。只需添加文件名: git show <sha1> <filename> git

git show SHA#1将提供提交SHA#1的所有更改。我只是好奇,是否有一种方法可以使用git show来更改特定文件的列表(过滤掉git show SHA#1的结果以获取文件的更改)


我知道我可以使用git diff来实现这一点,只需添加您的文件名:

git show <sha1> <filename>
git秀

有关如何指定要显示的对象的详细信息,请参阅。

只需添加文件名:

git show <sha1> <filename>
git秀

有关如何指定要显示的对象的详细信息,请参阅。

只需添加文件名:

git show <sha1> <filename>
git秀

有关如何指定要显示的对象的详细信息,请参阅。

只需添加文件名:

git show <sha1> <filename>
git秀
有关如何指定要显示的对象的详细信息,请参见