git alias

This commit is contained in:
thek4n 2025-01-31 14:06:38 +03:00
parent 0d4515d8c3
commit 4b6cbc0f8d
3 changed files with 8 additions and 11 deletions

View File

@ -24,6 +24,7 @@
ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
pr = "pull --rebase"
s = status
st = status
br = branch
bm = branch --merged
@ -50,4 +51,4 @@
aliases = "!git config -l | grep '^alias\\.' | cut -d. -f2-"
# git clone git://localhost/
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/

View File

@ -76,16 +76,12 @@ alias vi='nvim'
alias svi="sudo --preserve-env nvim"
# git
alias gs="git status"
alias gd="git diff"
alias gds="git diff --staged"
alias ga="git a"
for al in s d di co col ds a u ps pl hs last lastd df amend br
do
alias "g${al}"="git ${al}"
done
alias gcim="noglob git cim"
alias gps="git ps"
alias ghs="git hs"
alias glast="git last"
alias glastd="git lastd"
alias gdf="git df"
# net
alias ports='ss -tlnp'

View File

@ -254,4 +254,4 @@ case "${executed_command}" in
help) shift; cmd_help "$@" ;;
*) shift; cmd_install "${executed_command}" "$@" ;;
esac
exit 0
exit 0