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)" ps = "!git push origin $(git rev-parse --abbrev-ref HEAD)"
pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)" pl = "!git pull origin $(git rev-parse --abbrev-ref HEAD)"
pr = "pull --rebase" pr = "pull --rebase"
s = status
st = status st = status
br = branch br = branch
bm = branch --merged bm = branch --merged
@ -50,4 +51,4 @@
aliases = "!git config -l | grep '^alias\\.' | cut -d. -f2-" aliases = "!git config -l | grep '^alias\\.' | cut -d. -f2-"
# git clone git://localhost/ # 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" alias svi="sudo --preserve-env nvim"
# git # git
alias gs="git status" for al in s d di co col ds a u ps pl hs last lastd df amend br
alias gd="git diff" do
alias gds="git diff --staged" alias "g${al}"="git ${al}"
alias ga="git a" done
alias gcim="noglob git cim" 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 # net
alias ports='ss -tlnp' alias ports='ss -tlnp'

View File

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