Add more git aliases

This commit is contained in:
Michael Campagnaro 2012-11-12 14:55:25 -05:00
parent 49bff18618
commit 043ec0e07b
2 changed files with 35 additions and 31 deletions

View File

@ -1,35 +1,37 @@
[user]
name = Michael Campagnaro
email = mikecampo@gmail.com
name = Michael Campagnaro
email = mikecampo@gmail.com
[diff]
[color]
ui = auto
ui = auto
[alias]
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
hp = "!source ~/.githelpers && show_git_head"
r = !git l -20
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
p = push
st = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all
head = !git l -1
h = !git head
hp = "!source ~/.githelpers && show_git_head"
r = !git l -20
re = remote
ra = !git r --all
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
l = "!source ~/.githelpers && pretty_git_log"
la = !git l --all
div = divergence
gn = goodness
gnc = goodness --cached
fa = fetch --all
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
[merge]
tool = vimdiff
tool = vimdiff

6
.zshrc
View File

@ -31,7 +31,7 @@ alias ls='ls -G'
alias ll='ls -lG'
alias l='ls -laG'
alias duh='du -csh'
export GREP_OPTIONS="--color"
export GREP_OPTIONS="-n --color"
# Unbreak history
export HISTSIZE=10000
@ -43,12 +43,14 @@ alias r=rails
alias g=git
alias gst='git st'
alias gci='git ci'
alias gp='git push'
alias gpom='git push origin master'
alias gf='git fetch'
alias gaa='git add --all'
alias gl='!source ~/.githelpers && pretty_git_log'
alias gl="!source ~/.githelpers && pretty_git_log"
alias gdc='git diff --cached'
alias gam='git commit --amend'
alias gre='git remote'
alias cls=clear
alias sl=ls # often screw this up
alias history='fc -l 1'