Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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
如何查看Gitosis服务器中的最后一次提交及其日期_Git_Gitosis - Fatal编程技术网

如何查看Gitosis服务器中的最后一次提交及其日期

如何查看Gitosis服务器中的最后一次提交及其日期,git,gitosis,Git,Gitosis,我想看看我的Gitosis服务器上的最后一个活动,因为我们有一个新的服务(Gitorious),我们认为Gitosis已经被用户遗忘了。 我可以使用它查看提交的数量: cd/path/to/repos/&ls|xargs-I%git--git dir=%rev list--all 2>/dev/null | wc-l 但这只显示数字,不显示日期。使用--pretty选项,例如 git show --pretty='format:%h %ai' 有关“漂亮”格式的更多信息,请参阅

我想看看我的Gitosis服务器上的最后一个活动,因为我们有一个新的服务(Gitorious),我们认为Gitosis已经被用户遗忘了。 我可以使用它查看提交的数量:

cd/path/to/repos/&ls|xargs-I%git--git dir=%rev list--all 2>/dev/null | wc-l
但这只显示数字,不显示日期。

使用
--pretty
选项,例如

git show --pretty='format:%h %ai'
有关“漂亮”格式的更多信息,请参阅