git clone
is a command that creates a copy of a repository, including all its branches and history, in a new directory.
Here’s an example:
git clone https://github.com/username/repo.git
This will create a copy of the repository repo
owned by username
on GitHub, and save it to a new directory called repo
in your local machine.
You can also use git clone
to clone a repository from a remote server using SSH, or to clone a specific branch.
For more information, you can check out the official Git documentation.