From 0bb320f19239146f8c05c6773fe9b7f163e34b36 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 26 Dec 2018 11:21:39 +0100 Subject: [PATCH] moved Git aliases to gitconfig --- home/.bash_aliases | 13 +------------ home/.gitconfig | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/home/.bash_aliases b/home/.bash_aliases index fce1f6f..3ffd71a 100644 --- a/home/.bash_aliases +++ b/home/.bash_aliases @@ -14,18 +14,7 @@ alias cp='cp -i' alias dquilt='quilt --quiltrc=${HOME}/.quiltrc-dpkg' # git Aliases -alias gcl='git clone' -alias ga='git add' -alias gall='git add .' -alias gd='git diff' -alias g='git' -alias gs='git status' -alias gp='git push' -alias gpo='git push origin ' -alias gb='git branch' -alias gc='git commit' -alias gl='git log --oneline' -alias gll='git log --graph --pretty=oneline --abbrev-commit' +alias g=git # I'd like to learn the vi keybinings alias pico=vi diff --git a/home/.gitconfig b/home/.gitconfig index 070a2d1..3743a39 100644 --- a/home/.gitconfig +++ b/home/.gitconfig @@ -56,4 +56,18 @@ smtpServerPort = 587 [alias] addnw = !sh -c 'git diff -U0 -w --no-color "$@" | git apply --cached --ignore-whitespace --unidiff-zero -' + l = log --oneline + ll = log --graph --pretty=oneline --abbrev-commit + lll = "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" + a = add + d = diff + p = push + po = push origin + c = commit + s = status + cl= clone + co = checkout + br = branch + type = 'cat-file -t' + dump = 'cat-file -p'