Skip to content

Instantly share code, notes, and snippets.

@jeffjrare
Created March 28, 2012 14:40
Show Gist options
  • Save jeffjrare/2226724 to your computer and use it in GitHub Desktop.
Save jeffjrare/2226724 to your computer and use it in GitHub Desktop.
.gitconfig aliases
[color]
ui = true
[apply]
whitespace = nowarn
[alias]
st = status
cam = commit -a -m
ci = commit
cia = commit --amend
co = checkout
br = branch
sb = show-branch
cp = cherry-pick
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short#"
unstage = reset HEAD --
u = reset HEAD --
m = merge --no-ff
po = pull origin
pr= pull --rebase
s = show --pretty=format: --name-only
staged = diff --cached
rb = rebase
rbc = rebase --continue
rbs = rebase --skip
rl = reflog
rs = remote show
rt = remote
ru = remote update
rp = remote prune
sm = submodule
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment