Thursday, 20 November 2025

Mastering git clone

You will want to use git clone to clone a repository and see its contents. This is similar to an svn checkout, or svn co.

So what does git clone actually do?

git clone clones a repository into a newly created directory, plus a lot more - read and summarise this later. Pay close attention to the notion of "remote-tracking branches".

There is a -l or --local option for git clone which does a clone from a local machine.

No comments: