config-bash/aliases.d/git
Xavier Logerais (Numericable - Ingénierie Système) e9c07667ed Modified aliases.d/git
2015-02-02 19:02:44 +01:00

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