30 lines
650 B
Bash
30 lines
650 B
Bash
#!/bin/bash
|
|
|
|
# Git
|
|
if [ -x /usr/bin/git ]
|
|
then
|
|
alias gs='git status'
|
|
alias ga='git add'
|
|
alias gc='git commit'
|
|
alias gca='git commit -a'
|
|
alias gu='git pull'
|
|
alias gp='git pull && git push'
|
|
alias gd='git diff'
|
|
alias gdc='git diff --cached'
|
|
alias gb='git branch'
|
|
alias gco='git checkout'
|
|
alias gw='git whatchanged'
|
|
alias gl='git log --graph'
|
|
|
|
alias gstatus='git status'
|
|
alias glog='git log'
|
|
alias glast='git last'
|
|
alias gshow='git show'
|
|
alias gdiff='git diff'
|
|
alias gcommit='git commit'
|
|
alias gcommitall='git commit --all'
|
|
alias greset='git reset'
|
|
alias gpull='git pull'
|
|
alias gpush='git pull && git push'
|
|
fi
|