Created
September 3, 2018 07:50
-
-
Save MrMovl/b8d3f390e3c43e911bff19f45b11e32c to your computer and use it in GitHub Desktop.
Alias file for all the aliases [from here](https://dev.to/robertcoopercode/using-aliases-to-speed-up-your-git-workflow-2f5a)
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
alias gdno="git diff --name-only" | |
alias gd="git diff" | |
alias gcm="git commit -m" | |
alias gaa="git add -A" | |
alias gca="git commit --amend --no-edit" | |
alias gcaa="git add --all && git commit --amend --no-edit" | |
alias gnope="git checkout ." | |
alias gwait="git reset HEAD" | |
alias gundo="git reset --soft HEAD^" | |
alias gl="git log --graph --pretty='\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit" | |
alias gco="git checkout" | |
alias gps="git push" | |
alias gpsf="git push --force-with-lease" | |
alias gpl="git pull --rebase" | |
alias grb="git rebase" | |
grn() { git rebase -i HEAD~"$1"; } | |
grbic() { git rebase -i "$1" ; } | |
alias grba="git rebase --abort" | |
alias grbc="git rebase --continue" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I changed the quoting in
gl
because it did not work (ZSH):But, this would be my
gl
: