git checkout
Restore working tree files
Git Merge Conflicts
When Git cannot automatically merge two versions of a file it inserts conflict markers directly into the file. Everything between <<<<<<< HEAD and ======= is your current branch's version. Everything between ======= and >>>>>>> branch-name is the incoming branch's version. To resolve, delete the markers and keep whichever version (or combination) is correct. |
git config
Sets configuration options for Git at different scopes. --global applies to all repositories for the current user, --local applies only to the current repository. Stored in ~/.gitconfig for global and .git/config for local. |
gut reflog
git fetch
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. |
Cheatography
https://cheatography.com
git Cheat Sheet (DRAFT) by blakecromar
Standard git Concepts
This is a draft cheat sheet. It is a work in progress and is not finished yet.