How git repositories work

git init

Create an empty Git repository or reinitialize an existing one
(may not be necessary if the repository is created with a git clone)

git clone

The git clone command copies an existing Git repository. This is sort of like svn checkout , except the “working copy” is a full-fledged Git repository—it has its own history, manages its own files, and is a completely isolated environment from the original repository.