Created
March 21, 2013 15:54
-
-
Save gogogarrett/5214136 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| co = checkout | |
| # Log display from screencast, with train tracks. | |
| l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset' | |
| # Alternate log display from Scott Chacon | |
| lol = log --pretty=oneline --abbrev-commit --graph --decorate | |
| # Other useful aliases: | |
| unstage = reset HEAD | |
| staged = diff --cached | |
| unstaged = diff | |
| current-branch = !git symbolic-ref -q HEAD | sed -e 's|^refs/heads/||' | |
| # Usage: git track origin/feature-123-login-form | |
| track = checkout -t | |
| [apply] | |
| whitespace = warn | |
| [color] | |
| diff = auto | |
| status = auto | |
| branch = auto | |
| ui = true | |
| [help] | |
| autocorrect = 1 | |
| [status] | |
| submodule = 1 | |
| [push] | |
| # Only push branches that have been set up to track a remote branch. | |
| default = current |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment