From 9f9b1d561b706cab0c7a0c5c12ef159e1e2c7ec9 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 30 Aug 2021 22:25:10 +0200 Subject: [PATCH] git: aliase --- .bash_aliases | 2 ++ .gitconfig | 27 ++++++++++++--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 51ec685..df4eb08 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -23,6 +23,8 @@ alias hibernate="i3lock -c 000000 && systemctl hibernate" alias shutdown="sudo shutdown --no-wall now" # git alias gsps="git stash && git pull && git stash pop" +alias gcm="git commit -m" +alias gdel="git add . && git stash && git stash drop" # typo alias mkae="make" alias amke="make" diff --git a/.gitconfig b/.gitconfig index 280260b..b1d1be1 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,21 +1,18 @@ [user] - name = Michael Grote - email = michael.grote@posteo.de + name = Michael Grote + email = michael.grote@posteo.de [credential] - helper = store + helper = store [alias] - logs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative - s = status - c = checkout - cm = commit -m + logs = log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative + cm = commit -m d = diff ds = diff --staged - r = rebase - rc = rebase --continue - remote = remote -v - fetchp = fetch --prune - cline = clone - stagep = stage -p - staus = status + rc = rebase --continue + remote = remote -v + stagep = stage -p + last = log -1 HEAD --stat [core] - editor = vim + editor = vim +[help] + autocorrect = 20 # https://opensource.com/article/20/11/git-aliases