svn cat for git
Posted
by sanxiyn
on Stack Overflow
See other posts from Stack Overflow
or by sanxiyn
Published on 2010-05-15T05:21:41Z
Indexed on
2010/05/15
5:34 UTC
Read the original article
Hit count: 348
git
I am looking for the equivalent of svn cat
in git.
Yes, I am aware that the similar question was asked here. The answer is to use git show rev:path
.
However, svn cat
can be used for the remote repository. That is, I can do svn cat url@rev
and get the file from the specified revision of the remote repository, without getting the whole repository. My understanding is that git show
only applies to the local repository.
A workaround I found is to use gitweb interface to get the blob.
© Stack Overflow or respective owner