Skip to content

Instantly share code, notes, and snippets.

@jayfredlund
Last active August 29, 2015 14:20
Show Gist options
  • Save jayfredlund/e3d1d1425f938b5fa22f to your computer and use it in GitHub Desktop.
Save jayfredlund/e3d1d1425f938b5fa22f to your computer and use it in GitHub Desktop.
aliases for git
# shell profile
alias ga='git add'
alias gp='git push'
alias gs='git status'
alias gd='git diff'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
alias gpu='git pull'
alias gcl='git clone'
alias gr='git remote'
alias gc='git checkout'
alias git-scrub='git branch --merged | grep -v master | xargs git branch -d'
# ~/.gitconfig --global --edit
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
[color]
branch = auto
diff = auto
interactive = auto
status = auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment