git log 命令能看具体修改哪些文件吗?

7,061 views
Skip to first unread message

Chunlin Zhang

unread,
May 30, 2011, 3:45:13 AM5/30/11
to git...@googlegroups.com
git help log 都不知道用啥命令才行,是不是做不到?

Peter

unread,
May 30, 2011, 4:44:18 AM5/30/11
to git...@googlegroups.com
git community book 里有一章是专讲git log的
你可以看一下:)

On 5/30/11, Chunlin Zhang <zhangc...@gmail.com> wrote:
> git help log 都不知道用啥命令才行,是不是做不到?
>

AleiPhoenix (A.K.A Areverie)

unread,
May 30, 2011, 5:06:58 AM5/30/11
to git...@googlegroups.com
顺便给点快速提示:)

git log --stat
--
This mail is sent using Gmail web.

Contact:
twitter: AReverie

Chunlin Zhang

unread,
May 30, 2011, 5:23:24 AM5/30/11
to git...@googlegroups.com
谢谢!

对了,如果是 merge 就看不到具体改了些什么.不过这个用 gitk 也看不到,我找来找去用 qgit 能看到,其他都不行.git 的
gui 工具这么多,好用的可以说没有阿.tortoise 系列一个顶n个,不过 tortoisegit 没有 linux 版本阿.

Peter

unread,
May 30, 2011, 10:45:36 PM5/30/11
to git...@googlegroups.com
目前我还是觉得命令好用些
因为 git里有些东东太复杂了,不好用gui来表示

2011/5/30 Chunlin Zhang <zhangc...@gmail.com>

Chunlin Zhang

unread,
May 30, 2011, 10:58:48 PM5/30/11
to git...@googlegroups.com
那如何用 git log --stat 看到 merge 提交改了哪些文件?
用命令行感觉应该是能做到的才对.

2011/5/31 Peter <liuh...@gmail.com>:
> 目前我还是觉得命令好用些
> 因为 git里有些东东太复杂了,不好用gui来表示

不过最常用的都是那部分不复杂的

AleiPhoenix (A.K.A Areverie)

unread,
May 30, 2011, 11:08:25 PM5/30/11
to git...@googlegroups.com
如果想查看某次commit的话可以用

git show --stat ${commit_hash}
来查看

如果想查看与上次有和差别,可以用diff

比如git diff ${commit_hash} $(commint_hash)^
之类的:)

2011/5/31 Chunlin Zhang <zhangc...@gmail.com>

Chunlin Zhang

unread,
May 31, 2011, 11:42:43 PM5/31/11
to git...@googlegroups.com
试过果然可以,非常感谢!

LIU Wei

unread,
May 30, 2011, 4:01:20 AM5/30/11
to git...@googlegroups.com
2011/5/30 Chunlin Zhang <zhangc...@gmail.com>:
> git help log 都不知道用啥命令才行,是不是做不到?
>

git log --stat

Reply all
Reply to author
Forward
0 new messages