Quantcast
Channel: Code Yarns » git
Viewing all articles
Browse latest Browse all 12

How to git clone only the latest revision

$
0
0

Most of the time when I clone a Github repository, I just need the latest revision. There is no point wasting my time cloning the entire repository with all the changes.

To do this:

$ git clone --depth=1 https://github.com/joe/foobar.git

Tried with: Git 1.9.1


Tagged: clone, git

Viewing all articles
Browse latest Browse all 12

Trending Articles