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.