git: aliase

This commit is contained in:
Michael Grote 2021-08-30 22:25:10 +02:00
parent 15ff494c95
commit 9f9b1d561b
2 changed files with 14 additions and 15 deletions

View file

@ -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"

View file

@ -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