I'm looking for git in the same value as svn cat
Yes, I know that was asked here. Answer git show rev: path
.
, however, svn cat
can be used for remote repositories. That is, I can get the svn cat url @ rev
and get the file through the specified revision of the remote repository without the whole repository. I understand that git shows
only applies to local repositories.
An action I got is to use the gitweb interface to get Bluetooth.
If your motivation is to download and / or reduce the amount of data stored in your local disk, You can try the commands given below.
git clone --depth = 1 --bare REPO CD REPO.git show head: Pat / TO / FILE
- Depth = 1
means that you will not only download any history from the most recent amendments - bare
means that you will download the remote repository, but in fact anybody working Do not create trees, save space on your local disk.
Note that if you are interested in the most recent addition to a version of the file, the above order will not work, because they do not download any history.
Comments
Post a Comment