Re: how can we git out source code base on git log?
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Mar 8, 2011, 08:22 UTC
- Message-ID
- <vpq8vwqvx65.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTimAPBoHJX0iZOt949xQ8HeGPXRyKfD4CDNJFv7u@mail.gmail.com>
loody <miloody@gmail.com> writes:
> Is it possible I can check out the commit as > 3831530dcb7b71329c272ccd6181f8038b6a6dd0,?
In complement to Jeff's answer: you can also get the content of a specific file without checking out with
git show 3831530dcb7b713:path/to/file
Show 7 quoted lines
> commit 3831530dcb7b71329c272ccd6181f8038b6a6dd0 > Author: Mikhail Zolotaryov <lebon@lebon.org.ua> > Date: Wed Sep 8 17:06:03 2010 +0300 > ....... > ....... > > Tag: aabb
git log --decorate
does this (except that tags appear after the commit ID, not after the log message). You may also want to look at gitk.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/