Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/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-通过一个用户在一行中查找特定文件的更改历史记录_Git - Fatal编程技术网

git-通过一个用户在一行中查找特定文件的更改历史记录

git-通过一个用户在一行中查找特定文件的更改历史记录,git,Git,如何在一行中查找某个用户对特定文件的更改历史记录 我正在寻找一个单一的命令,它执行以下3 git log --author=author git log --pretty=oneline git log -p pom.xml 我只想在一行中显示特定文件的SHAID、author和commit消息 提前谢谢。我很早就误解了你的要求;--pretty=format中的这种特殊格式将满足您的需求 git log --pretty=format:'%h %an %s' --author=gnavin

如何在一行中查找某个用户对特定文件的更改历史记录 我正在寻找一个单一的命令,它执行以下3

git log --author=author
git log --pretty=oneline
git log -p pom.xml
我只想在一行中显示特定文件的SHAID、author和commit消息


提前谢谢。

我很早就误解了你的要求;
--pretty=format
中的这种特殊格式将满足您的需求

git log --pretty=format:'%h %an %s' --author=gnavin -z -- pom.xml

,因此您可以在一行中获得所有结果。不过,由您来处理
NUL
字符。

它没有在一行中生成输出。我只想把一个特定文件的SHAID、author和commit消息放在一行中,这样就行了。谢谢我正在尝试类似于这个git日志的格式='%H%an%s'-p--pom.xml