Skip to content

Instantly share code, notes, and snippets.

@mihajloS
Last active May 15, 2024 10:44
Show Gist options
  • Save mihajloS/427394301a60ca306ddc7330beb059b6 to your computer and use it in GitHub Desktop.
Save mihajloS/427394301a60ca306ddc7330beb059b6 to your computer and use it in GitHub Desktop.
Github aliases
# git cli alias performance toolkit
alias gs='git status'
alias gc='git checkout'
alias gp='git push'
alias gp!='git push --force-with-lease'
alias ga='git commit --amend'
alias ga!='git commit --amend --no-edit'
alias grs='git restore --staged'
alias grs!='git restore --staged .'
alias pull='get pull --rebase'
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
#workflow inline example, where you amend last commmit with latest changes
#git add . && ga! && gp!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment