On Thu, 14 Jun 2012 23:53:30 +0800
lei yang <yanglei.f...@gmail.com> wrote:

> >> Can we get the commit id list for one file or multifile?
> >>
> >> Lei
> >>
> > What do you mean by commit id?
> >
> 
> I mean the file in git tree has lots of commit, I want to get the
> commit list for this file

$ git rev-list --all -- <filename>

or

$ git log --format=%H -- <filename>

Note that Git does not explicitly record file renames (contrary to
certain systems like Subversion, which do), and to compensate for this
when using `git log`, Git has to be told to use special heuristics.
So if you need this, you should probably study the "--find-renames"
command-line option to `git log`, and, possibly, "--find-copies"
and/or "--find-copies-harder" as well.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to