Add more git aliases
This commit is contained in:
parent
49bff18618
commit
043ec0e07b
|
@ -5,6 +5,7 @@
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
[alias]
|
[alias]
|
||||||
|
p = push
|
||||||
st = status
|
st = status
|
||||||
ci = commit
|
ci = commit
|
||||||
co = checkout
|
co = checkout
|
||||||
|
@ -16,6 +17,7 @@
|
||||||
h = !git head
|
h = !git head
|
||||||
hp = "!source ~/.githelpers && show_git_head"
|
hp = "!source ~/.githelpers && show_git_head"
|
||||||
r = !git l -20
|
r = !git l -20
|
||||||
|
re = remote
|
||||||
ra = !git r --all
|
ra = !git r --all
|
||||||
ff = merge --ff-only
|
ff = merge --ff-only
|
||||||
pullff = pull --ff-only
|
pullff = pull --ff-only
|
||||||
|
|
6
.zshrc
6
.zshrc
|
@ -31,7 +31,7 @@ alias ls='ls -G'
|
||||||
alias ll='ls -lG'
|
alias ll='ls -lG'
|
||||||
alias l='ls -laG'
|
alias l='ls -laG'
|
||||||
alias duh='du -csh'
|
alias duh='du -csh'
|
||||||
export GREP_OPTIONS="--color"
|
export GREP_OPTIONS="-n --color"
|
||||||
|
|
||||||
# Unbreak history
|
# Unbreak history
|
||||||
export HISTSIZE=10000
|
export HISTSIZE=10000
|
||||||
|
@ -43,12 +43,14 @@ alias r=rails
|
||||||
alias g=git
|
alias g=git
|
||||||
alias gst='git st'
|
alias gst='git st'
|
||||||
alias gci='git ci'
|
alias gci='git ci'
|
||||||
|
alias gp='git push'
|
||||||
alias gpom='git push origin master'
|
alias gpom='git push origin master'
|
||||||
alias gf='git fetch'
|
alias gf='git fetch'
|
||||||
alias gaa='git add --all'
|
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 gdc='git diff --cached'
|
||||||
alias gam='git commit --amend'
|
alias gam='git commit --amend'
|
||||||
|
alias gre='git remote'
|
||||||
alias cls=clear
|
alias cls=clear
|
||||||
alias sl=ls # often screw this up
|
alias sl=ls # often screw this up
|
||||||
alias history='fc -l 1'
|
alias history='fc -l 1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user