Skip to content

Create and Clone Repos

Create

Init a local repo

git init

Clone

Clone on a folder with the repo name

git clone https://github.com/GonGarce/git-basics.git

Clone on a folder with a custom name

git clone https://github.com/GonGarce/git-basics.git my-repo

Basics of remotes

Add a new remote repository

git remote add origin https://github.com/GonGarce/git-basics.git

See all remote repositories

git remote -v