Git Cheat Sheet Education
Git Cheat Sheet Education
Git is the free and open source distributed version control system that's responsible for everything GitHub related that
used Git commands for easy reference.
Git for All Platforms diff of what is changed but not staged
http://git-scm.com git diff --staged
Configuring user information used across all local repositories commit your staged content as a new commit snapshot
set a name that is identifiable for credit when review version history
BRANCH & MERGE
git config --global user.email “[valid-email]”
Isolating work in branches, changing context, and integrating changes
set an email address that will be associated with each history marker
git branch
git config --global color.ui auto
list your branches. a * will appear next to the currently active branch
set automatic command line coloring for Git for easy reviewing
git branch [branch-name]
initialize an existing directory as a Git repository merge the specified branch’s history into the current one
retrieve an entire repository from a hosted location via URL show all commits in the current branch’s history
INSPECT & COMPARE SHARE & UPDATE
Examining logs, diffs and object information Retrieving updates from another repository and updating local repos
git log
fetch and merge any commits from the tracking remote branch
git rm [file] Save a file with desired patterns as .gitignore with either direct
delete the file from project and stage the removal for commit string matches or wildcard globs.
change an existing file path and stage the move system wide ignore pattern for all local repositories
show all commit logs with indication of any paths that moved
TEMPORARY COMMITS
Temporarily store modified, tracked files in order to change branches
git stash
[email protected]
education.github.com