Skip to content

Instantly share code, notes, and snippets.

@ejke
Last active June 11, 2021 11:28
Show Gist options
  • Save ejke/bda3ad52ba347347224f8180655fd79a to your computer and use it in GitHub Desktop.
Save ejke/bda3ad52ba347347224f8180655fd79a to your computer and use it in GitHub Desktop.
Git Aliases to get yourself more time.
# Put the following into your ~/.bash_profile file (Mac) or ~/.bashrc file (Ubuntu)
# Enables to use shortcuts for most common git commands.
# ----------------------
# Git Aliases
# ----------------------
alias gf='git status'
alias gb='git branch'
alias gbn='git checkout'
alias gbnb='git checkout -b'
alias gd='git diff'
alias gp='git pull'
alias gpom='git pull origin master'
alias gpo='git pull origin'
alias ga='git add'
alias gfd='git commit -m'
alias gpooo='git push origin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment