Last active
August 29, 2015 14:20
-
-
Save jayfredlund/e3d1d1425f938b5fa22f to your computer and use it in GitHub Desktop.
aliases for git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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