config-bash/aliases.d/git
2023-11-02 15:11:48 +01:00

30 lines
720 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 gf='git fetch'
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