Add more git aliases
This commit is contained in:
parent
17b7c8406d
commit
840caf63d5
22
.gitconfig
22
.gitconfig
|
@ -5,31 +5,39 @@
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
[alias]
|
[alias]
|
||||||
|
b = branch
|
||||||
|
h = !git head
|
||||||
|
l = !git ll -25
|
||||||
p = push
|
p = push
|
||||||
|
r = reset
|
||||||
|
s = stash
|
||||||
|
x = reset --hard
|
||||||
|
sl = stash list
|
||||||
|
sp = stash pop
|
||||||
|
sd = stash drop
|
||||||
|
sa = stash apply
|
||||||
st = status
|
st = status
|
||||||
ci = commit
|
ci = commit
|
||||||
|
cp = cherry-pick
|
||||||
co = checkout
|
co = checkout
|
||||||
di = diff
|
|
||||||
dc = diff --cached
|
dc = diff --cached
|
||||||
|
di = diff
|
||||||
amend = commit --amend
|
amend = commit --amend
|
||||||
aa = add --all
|
aa = add --all
|
||||||
head = !git l -1
|
head = !git l -1
|
||||||
h = !git head
|
|
||||||
hp = "!source ~/.githelpers && show_git_head"
|
hp = "!source ~/.githelpers && show_git_head"
|
||||||
r = !git l -20
|
|
||||||
re = remote
|
re = remote
|
||||||
ra = !git r --all
|
ra = !git r --all
|
||||||
ff = merge --ff-only
|
ff = merge --ff-only
|
||||||
pff = pull --ff-only
|
pff = pull --ff-only
|
||||||
noff = merge --no-ff
|
noff = merge --no-ff
|
||||||
l = "!source ~/.githelpers && pretty_git_log"
|
la = !git ll --all
|
||||||
la = !git l --all
|
ll = "!source ~/.githelpers && pretty_git_log"
|
||||||
div = divergence
|
div = divergence
|
||||||
gn = goodness
|
gn = goodness
|
||||||
gnc = goodness --cached
|
gnc = goodness --cached
|
||||||
fa = fetch --all
|
fa = fetch --all
|
||||||
pom = push origin master
|
pom = push origin master
|
||||||
b = branch
|
|
||||||
ds = diff --stat=160,120
|
ds = diff --stat=160,120
|
||||||
dh1 = diff HEAD~1
|
dh1 = diff HEAD~1
|
||||||
|
|
||||||
|
@ -37,3 +45,5 @@
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
[core]
|
[core]
|
||||||
editor = /usr/bin/vim
|
editor = /usr/bin/vim
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
|
13
.zshrc
13
.zshrc
|
@ -29,18 +29,19 @@ export PATH="$HOME/bin:$PATH"
|
||||||
# Unbreak broken, non-colored terminal
|
# Unbreak broken, non-colored terminal
|
||||||
export TERM=xterm-256color
|
export TERM=xterm-256color
|
||||||
|
|
||||||
alias ls='ls -G'
|
|
||||||
alias ll='ls -lG'
|
|
||||||
alias l='ls -laG'
|
|
||||||
alias duh='du -csh'
|
|
||||||
export GREP_OPTIONS="-nRi --color --exclude-dir=tmp --exclude-dir=log --exclude-dir=public --exclude-dir=vendor/assets --exclude-dir=fonts --exclude-dir=images --exclude-dir=coverage"
|
|
||||||
|
|
||||||
# Unbreak history
|
# Unbreak history
|
||||||
export HISTSIZE=10000
|
export HISTSIZE=10000
|
||||||
export HISTFILE="$HOME/.history"
|
export HISTFILE="$HOME/.history"
|
||||||
export SAVEHIST=$HISTSIZE
|
export SAVEHIST=$HISTSIZE
|
||||||
|
|
||||||
|
# Grep tweaks
|
||||||
|
export GREP_OPTIONS="-nRi --color --exclude-dir=tmp --exclude-dir=public --exclude-dir=log --exclude-dir=vendor/assets --exclude-dir=fonts --exclude-dir=images --exclude-dir=coverage --exclude-dir=rdoc"
|
||||||
|
|
||||||
# Alias
|
# Alias
|
||||||
|
alias ls='ls -G'
|
||||||
|
alias ll='ls -lG'
|
||||||
|
alias l='ls -laG'
|
||||||
|
alias duh='du -csh'
|
||||||
alias r=rails
|
alias r=rails
|
||||||
alias g=git
|
alias g=git
|
||||||
alias gco='git co'
|
alias gco='git co'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user