Skip to content

Instantly share code, notes, and snippets.

@usmanity
Created May 8, 2023 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usmanity/1c669b1123ec78c2139b37b01fd8c732 to your computer and use it in GitHub Desktop.
Save usmanity/1c669b1123ec78c2139b37b01fd8c732 to your computer and use it in GitHub Desktop.
list of my currently used aliases
# git shortcuts
alias g=git
alias gst='git status'
alias ggpush='git push origin $(git rev-parse --abbrev-ref HEAD)'
alias ggpull='git pull origin $(git rev-parse --abbrev-ref HEAD)'
alias pull='ggpull'
alias pul='ggpull'
alias ggpnp='ggpull && ggpush'
alias gco="git checkout"
alias gc-='git checkout -'
alias gb='git checkout -b'
alias commit='git commit -am'
alias copybranch='git branch --show-current | pbcopy'
alias nrw='npm run watch'
alias yd='yarn dev'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment