Command Reference
git clone Tutorial
Explains how git clone copies a repository, what origin means by default, and what local branch setup usually looks like after cloning.
The short version
git clone copies an existing repository locally, including its history, objects, refs, and default remote configuration.
Basic usage
git clone https://example.com/repo.git
git clone https://example.com/repo.git my-project
What clone sets up
- a full local repository
- a default remote usually named
origin - an initial checkout of the default branch
Previousgit init Tutorial
Explains how git init creates a repository, how the initial branch is defined, and how it is used for both new and existing directories.
Nextgit status TutorialCovers how git status shows working tree, staging area, and branch state, and why it should be part of nearly every Git workflow.