Skip to content

Instantly share code, notes, and snippets.

@aaronlelevier
Created January 10, 2018 18:10
Show Gist options
  • Select an option

  • Save aaronlelevier/3e1157dd62ec5aa495ad7ed68c919681 to your computer and use it in GitHub Desktop.

Select an option

Save aaronlelevier/3e1157dd62ec5aa495ad7ed68c919681 to your computer and use it in GitHub Desktop.
Git Shortcuts
alias gitlog='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"'
alias gs='git status'
alias gd='git diff'
alias gds='git diff --staged'
alias gl='git log'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gco='git checkout'
alias gpr='git pull --rebase'
alias gp=' git push -u origin'
alias gpf='git push -u origin --force-with-lease'
alias gcp='git cherry-pick'
@aaronlelevier

Copy link
Copy Markdown
Author
# ~/.bash_profile
source ~/.gitshortcuts

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