Featured image of post Get only the latest of a git repository

Get only the latest of a git repository

Get only the latest of a git repository

You can get only the latest of a repository with the following command. It is useful when you want to quickly fetch a repository to save disk space.

1
git clone --depth 1 <repository URL>
comments powered by Disqus