git 查看当前与上一次version的差异
http://stackoverflow.com/questions/9903541/finding-diff-between-current-and-last-versions
|
As pointed out on a comment by amalloy, if by "current and last versions" you mean the last commit and the commit before that, you could simply use
|
|||
|
Assuming "current version" is the working directory (uncommitted modifications) and "last version" is
credit for following goes to user And if you always skip the staging area with Summary
Source: git-diff(1) Manual Page – Cerran |
|||||||||
|

浙公网安备 33010602011771号
git show HEAD~1to show the last-but-one commit, andgit show HEAD~2, etc. for older commits. Show just a single file viagit show HEAD~2 my_file. – Florian Brucker Mar 3 at 10:43