Skip to content

Instantly share code, notes, and snippets.

@unicornrainbow
Created August 18, 2010 18:27
Show Gist options
  • Save unicornrainbow/535717 to your computer and use it in GitHub Desktop.
Save unicornrainbow/535717 to your computer and use it in GitHub Desktop.
Favorite Git Commands
# This is a list of my favorite git commands.
# Keep a clean history by rebasing when you pull.
git pull --rebase
# Short and sweet output for the most used git command.
git status -s
# One line output from git log is usually enough and gives you a better overall picture.
git log --oneline
# Ignore whitespace when looking at a diff.
git diff -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment