mirror of https://github.com/bjeanes/dotfiles.git
28 lines
775 B
Bash
28 lines
775 B
Bash
alias gi='git init'
|
|
alias gst='git status'
|
|
alias gl='git pull --rebase'
|
|
alias gp='git push'
|
|
alias gpa='git push-all' # see [alias] in ~/.gitconfig
|
|
alias ga='git add'
|
|
alias gcl='git config --list'
|
|
alias gc='git commit -v'
|
|
alias gca='git commit -v -a'
|
|
alias gb='git branch --color'
|
|
alias gba='gb -a'
|
|
alias gco='git checkout'
|
|
alias gdc='git-svn dcommit'
|
|
alias gk='gitk --all &'
|
|
alias gx="open -b nl.frim.GitX"
|
|
alias grm="git stat | grep deleted | awk '{print $3}' | xargs git rm"
|
|
alias gpatch='git diff master -p'
|
|
alias ignore_empty='find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;'
|
|
|
|
function gd() {
|
|
git diff $* | mate
|
|
}
|
|
|
|
if [[ -d "/usr/local/git" ]]; then
|
|
PATH="/usr/local/git/bin:$PATH"
|
|
MANPATH="/usr/local/git/man:$MANPATH"
|
|
fi
|