Skip to content

Instantly share code, notes, and snippets.

@dblodorn
Created September 13, 2022 00:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dblodorn/a16929d3feec618467fd340002f35f0f to your computer and use it in GitHub Desktop.
Save dblodorn/a16929d3feec618467fd340002f35f0f to your computer and use it in GitHub Desktop.
Git Aliases:
## Git Aliases
alias gs='git status -s'
alias gb='git branch'
alias gd='git diff'
alias gl='git log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --dat$
alias gco='git checkout'
alias ga='git add .'
alias gcm='git commit -m'
alias gpo='git push origin'
alias gpuo='git pull origin'
alias gbcopy="git branch | grep '^\*' | cut -d' ' -f2 | pbcopy"
@dblodorn
Copy link
Author

For use with Bash (Unix shell) & .git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment