Skip to content

Instantly share code, notes, and snippets.

@datmt
Created April 10, 2023 02:27
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 datmt/d3d2774b7054e689614007400a80ba69 to your computer and use it in GitHub Desktop.
Save datmt/d3d2774b7054e689614007400a80ba69 to your computer and use it in GitHub Desktop.
Git shorthand for linux/mac
alias sc="git branch --show-current"
alias c="git commit "
alias s="git status"
alias f="git fetch"
alias l="git log"
alias rl="git reflog"
alias a="git add"
alias d="git diff"
alias pl="git pull"
alias psh="git push"
alias co="git checkout"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment