Show Menu
Cheatography

git Cheat Sheet (DRAFT) by

Standard git Concepts

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

git checkout

git checkout <branch>

Restore working tree files

git restore <FILE_PATH>
 

git branch

git branch

# List all remote branches
git branch -r
Lists all local branches
 

git fetch

git fetch <branch-name>
git fetch downloads commits, branches, and tags from a remote repository into your local repo — but does not modify your working directory or current branch.