Skip to content

Instantly share code, notes, and snippets.

@fschwiet
Created May 4, 2010 03:00
Show Gist options
  • Save fschwiet/388891 to your computer and use it in GitHub Desktop.
Save fschwiet/388891 to your computer and use it in GitHub Desktop.
GIT CHEAT SHEET
git status -
A view of what you're working on. Shows whats files staged to checkin, and whats not yet been staged.
gitk / menu option "start gui" -
A graphical UI for reviewing current changes and staging them for checkin
git diff
Shows changes between current source tree and what is staged for commit
git diff --cached
Shows changes that are staged for commit
git show-ref
Shows all reference (branches, remote branches, ...)
git ls-remote <remote reference>
Shows all branches on a remote repository
git branch -r
Shows all branches (?)
git show-branch -a
graph of branches versus commits (?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment