Quantcast
Viewing all articles
Browse latest Browse all 12

How to git clone only the latest revision

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 Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 12

Trending Articles