Show Menu
Cheatography

Git Cheat Sheet (DRAFT) by

Git cheat sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Git Termin­ology

master
default branch we develop in
origin
efault upstream repo (Github)
HEAD
current branch
remote
repository stored on another computer
staging (adding)
adding changed files to index tree to be committed
Here's a good glossary of defini­tions.
 

Starting a Repo

git init
Create a repo from existing data
git clone <repo url>
Clone a current repo (into a folder with same name as repo)
git clone <repo url> <folder name>
Clone a repo into a specific folder name
git clone <repo url> .
Clone a repo into current directory (should be an empty directory)