Tip when using “git clone”

Here’s a tip: If you are using “git clone” to get a copy (“check out”) of a git repository, and you aren’t concerned about the history, use “–depth=1”.

git clone --depth=1 URL

This means you wouldn’t be downloading all the history of the repository, just the most recent copy.

Leave a Reply