Add more git aliases
This commit is contained in:
parent
49bff18618
commit
043ec0e07b
|
@ -5,6 +5,7 @@
|
|||
[color]
|
||||
ui = auto
|
||||
[alias]
|
||||
p = push
|
||||
st = status
|
||||
ci = commit
|
||||
co = checkout
|
||||
|
@ -16,6 +17,7 @@
|
|||
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
|
||||
|
|
6
.zshrc
6
.zshrc
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user