Alias

Aus git commit wird git ci

Mit alias-Definitionen spart man sich Tipp-Arbeit.

git config --global alias.ci commit

Aus git status wird git st

git config --global alias.ci 'commit -m'

Einzeilige Ausgabe der Logeinträge

git config --global alias.ll 'log --oneline'

Letzter Commit

git config --global alias.last 'log -1 HEAD --stat'

Pfad zum Remote-Repository

git config --global alias.re 'remote -v'

Liste aller globlanen Aliase

git config --global alias.lg 'config --global -l'

alias in .bashrc

git-pullall () { for RMT in $(git remote); do git pull -v $RMT $1; done; }
alias git-pullall=git-pullall

git-pushall () { for RMT in $(git remote); do git push -v $RMT $1; done; }
alias git-pushall=git-pushall