Nice! I create two-letter aliases, it truly helps:
gc = git checkout
gs = git status
etc...
gc = git checkout
gs = git status
etc...
alias g="git"
__git_complete g _git # enable git autocompletion (braches, etc.)
alias gc="git commit -am"
alias gp="git push"
__git_complete gp _git_checkout # checkout is more useful than _git_push because it autocompletes the branch
alias ga="git add -A"
alias gd="git diff"
alias gb="git branch"
alias gx="git checkout"
__git_complete gx _git_checkout
alias gs="git status"
alias gl="git log" alias gcane="git commit --amend --no-edit" function fixup() {
git commit --fixup=$1
}
function refixup() {
git rebase -i --autosquash --autostash $1^1
}alias _up='sudo apt update -y && sudo apt upgrade -y'
Also not afraid to add multi-letter aliases if I find myself typing the same multi-word command over and over.
For example git diff master HEAD becomes gdmh
And then define one and two letter aliases for the things you do often:
st=status
l=log --with-prettiness
ap=add --patch
shit=reset
co=checkout