Created
January 15, 2014 14:24
-
-
Save mrmike/8437163 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
# GIT aliases | |
alias doMastera='git push origin HEAD:refs/for/master' | |
alias zrobFetcha='git fetch origin master && git checkout FETCH_HEAD' | |
alias gst='git status' | |
alias gd='git diff' | |
alias gl='git lg' | |
alias resetuj='git reset --hard HEAD' | |
alias amenduj='git commit --amend' | |
alias vim='~/Developments/vim/src/vim' | |
alias testuj='./gradlew connectedInstrumentTest' | |
pushForRefs() | |
{ | |
git push origin HEAD:refs/for/$1 | |
} | |
fetchBranch() | |
{ | |
git fetch origin $1 | |
} | |
alias refs=pushForRefs | |
alias fetchuj=fetchBranch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment