Last active
July 15, 2024 12:14
-
-
Save mihajloS/427394301a60ca306ddc7330beb059b6 to your computer and use it in GitHub Desktop.
Github aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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='git 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