setups/alias/git_alias

9 lines
360 B
Text

# Requires git to be installed
alias gitun="git reset HEAD"
alias gitadd="git add -p"
alias gits="git switch"
alias gitsb="git switch -"
alias gitc="git commit -S"
alias gitp="git push"
alias gitr="git rebase -i -S"
alias glg='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'