Re: How to view an old revision?
- From
Andy Whitcroft <apw@shadowen.org>
- Date
- Nov 1, 2006, 14:30 UTC
- Message-ID
- <4548AFA2.1040606@shadowen.org>
- In-Reply-To
- <3bbc18d20611010620m11e40402v44334a8c486a4932@mail.gmail.com>
Matt McCutchen wrote:
Show 6 quoted lines
> Dear git people, > > How do I view an old revision of a file without actually checking it > out? This would be analogous to "cvs checkout -r <old> -p". I've > RTMed and STWed and can't seem to find a way. >
Something like the following:
git cat-file -p <commit-ish>:<file>
For example: git cat-file -p tags/v1.4.3:git.c git cat-file -p f5f75c652b9c2347522159a87297820103e593e4:git.c