Skip to main content
Init commands are used to create new Git repositories or clone existing ones. These are typically the first commands you’ll use when starting work with Git.

git-clone

Clone a repository into a new directory

git-init

Create an empty Git repository or reinitialize an existing one

Usage

These commands are fundamental to starting any Git workflow:
  • Use git init to create a new repository from scratch
  • Use git clone to create a copy of an existing repository