Created
July 16, 2013 19:35
-
-
Save hvasconcelos/6011899 to your computer and use it in GitHub Desktop.
Git aliases
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
#!/bin/bash | |
alias gita='git add' | |
alias gitb='git branch' | |
# To see which local branches you have that are merged into the | |
# branch you are currently on | |
alias gitbm='git branch --merged' | |
alias gitbnm='git branch --no-merged' | |
alias gitc='git commit' | |
# Stage all the changes in tracked files | |
alias gitau='git add -u' | |
# Commit all the changes in the tracked files | |
alias gitca='git commit -am' | |
alias gitco='git checkout' | |
alias gitm='git merge' | |
# Remove Files | |
alias gitrm='git remove -v' | |
# Discard Changes | |
alias gitdc='git checkout --' | |
alias gitrh='git reset add' | |
alias gitps='git push' | |
alias gitpl='git pull' | |
alias gitrem='git remote -v' | |
alias gitl='git log --color' | |
alias gitl1='git log --oneline --color' | |
alias gitlg="git log --graph --full-history --all --color" | |
alias gits='git status --porcelain' | |
alias gitd='git diff --color' | |
alias gitdone='git diff --oneline --color' | |
# Stashing commands | |
alias gitsl='git stash list' | |
alias gitss='git stash show' | |
alias gitsc='git stash clear' | |
alias gitsa='git satsh create' | |
alias gitsd='git stash drop' | |
# Git stash create with message | |
alias gitscwm='git stash save' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment