Show Menu
Cheatography

Git basics Cheat Sheet (DRAFT) by

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

Basic inform­ation

Check status
git status
Commits log
git log
Short commits log
git log --oneline
Check differ­ences
git diff

Create a repository

In existing folder
git init
From remote
git clone <UR­L>
 

Commit changes

Check status
git status
Add changed files
git add <FI­LES...>
Commit
git commit
See your commit
git log

Working with remote

Push changes to remote
git push
Pull changes from remote
git pull