Git:看我上次的提交

我只是想看看上次提交时提交的文件,就像我在执行git commit时看到的那样。 不幸的是寻找 php

git "last commit" log

谷歌让我无处可去。 和 html

git diff HEAD^..HEAD

固然,这不是我须要的东西,由于它也会迸发出变化的内涵。 git


#1楼

git log -1 --name-status

这对我有用吗? spa


#2楼

到目前为止,最简单的命令是: code

git show --name-only

因为它列出只是在最后的文件提交,不给你整胆 htm

输出的一个例子是: ci

commit  fkh889hiuhb069e44254b4925d2b580a602
Author: Lord Vader <darth@deathstar.empire.gov>
Date:   Sat May 4 16:50:32 2168 -0700

Changed shield frequencies to prevent Millenium Falcon landing

 www/controllers/landing_ba_controller.php                
 www/controllers/landing_b_controller.php              
 www/controllers/landing_bp_controller.php            
 www/controllers/landing_h_controller.php              
 www/controllers/landing_w_controller.php   
 www/htdocs/robots.txt                        
 www/htdocs/templates/shields_FAQ.html

#3楼

git diff --stat HEAD get

这显示与上次提交相同的diffstat。 it


#4楼

使用git showio

git show --summary

这将显示已建立或已删除文件的名称,但不显示已更改文件的名称。 git show命令支持各类输出格式,显示有关提交的各类类型的信息。


#5楼

$ git diff --name-only HEAD^..HEAD

要么

$ git log --name-only HEAD^..HEAD
相关文章
相关标签/搜索