git: aliase
This commit is contained in:
parent
15ff494c95
commit
9f9b1d561b
2 changed files with 14 additions and 15 deletions
|
@ -23,6 +23,8 @@ alias hibernate="i3lock -c 000000 && systemctl hibernate"
|
||||||
alias shutdown="sudo shutdown --no-wall now"
|
alias shutdown="sudo shutdown --no-wall now"
|
||||||
# git
|
# git
|
||||||
alias gsps="git stash && git pull && git stash pop"
|
alias gsps="git stash && git pull && git stash pop"
|
||||||
|
alias gcm="git commit -m"
|
||||||
|
alias gdel="git add . && git stash && git stash drop"
|
||||||
# typo
|
# typo
|
||||||
alias mkae="make"
|
alias mkae="make"
|
||||||
alias amke="make"
|
alias amke="make"
|
||||||
|
|
27
.gitconfig
27
.gitconfig
|
@ -1,21 +1,18 @@
|
||||||
[user]
|
[user]
|
||||||
name = Michael Grote
|
name = Michael Grote
|
||||||
email = michael.grote@posteo.de
|
email = michael.grote@posteo.de
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
[alias]
|
[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
|
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
|
cm = commit -m
|
||||||
c = checkout
|
|
||||||
cm = commit -m
|
|
||||||
d = diff
|
d = diff
|
||||||
ds = diff --staged
|
ds = diff --staged
|
||||||
r = rebase
|
rc = rebase --continue
|
||||||
rc = rebase --continue
|
remote = remote -v
|
||||||
remote = remote -v
|
stagep = stage -p
|
||||||
fetchp = fetch --prune
|
last = log -1 HEAD --stat
|
||||||
cline = clone
|
|
||||||
stagep = stage -p
|
|
||||||
staus = status
|
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
|
[help]
|
||||||
|
autocorrect = 20 # https://opensource.com/article/20/11/git-aliases
|
||||||
|
|
Loading…
Reference in a new issue