INSTALLATION
GIT Installers for different Operating Systems

bash
Link to Git website & documentation
bash
Link to Git installation for Windows
bash
Link to Git installation for Mac
bash
Link to Git installation for Linux and Unix

SETUP
Configuring user information used across all local repositories

bash
set a name that is identifiable for credit when review version history
bash
set an email address that will be associated with each history marker
bash
set automatic command line coloring for Git for easy reviewing

SETUP & INIT
Configuring user information, initializing and cloning repositories

bash
initialize an existing directory as a Git repository
bash
retrieve an entire repository from a hosted location via URL

INSPECT & COMPARE
Examining logs, diffs and object information

bash
show the commit history for the currently active branch
bash
show the commits on branchA that are not on branchB
bash
show the commits that changed file, even across renames
bash
show the diff of what is in branchA that is not in branchB
bash
show any object in Git in human-readable format

TRACKING PATH CHANGES
Versioning file removes and path changes

bash
delete the file from project and stage the removal for commit
bash
change an existing file path and stage the move
bash
show all commit logs with indication of any paths that moved

IGNORING PATTERNS
Preventing unintentional staging or commiting of files

gitignore
Save a file with desired paterns as .gitignore with either direct string matches or wildcard globs.
bash
system wide ignore patern for all local repositories

STAGE & SNAPSHOT
Working with snapshots and the Git staging area

bash
show modified files in working directory, staged for your next commit
bash
add a file as it looks now to your next commit (stage)
bash
unstage a file while retaining the changes in working directory
bash
diff of what is changed but not staged
bash
diff of what is staged but not yet commited
bash
commit your staged content as a new commit snapshot

BRANCH & MERGE
Isolating work in branches, changing context, and integrating changes

bash
list your branches. a * will appear next to the currently active branch
bash
create a new branch at the current commit
bash
switch to another branch and check it out into your working directory
bash
merge the specified branch’s history into the current one
bash
show all commits in the current branch’s history

SHARE & UPDATE
Retrieving updates from another repository and updating local repos

bash
add a git URL as an alias
bash
fetch down all the branches from that Git remote
bash
merge a remote branch into your current branch to bring it up to date
bash
Transmit local branch commits to the remote repository branch
bash
fetch and merge any commits from the tracking remote branch

REWRITE HISTORY
Rewriting branches, updating commits and clearing history

bash
apply any commits of current branch ahead of specified one
bash
clear staging area, rewrite working tree from specified commit

TEMPORARY COMMITS
Temporarily store modified, tracked files in order to change branches

bash
Save modified and staged changes
bash
list stack-order of stashed file changes
bash
write working from top of stash stack
bash
discard the changes from top of stash stack