Skip to content

Instantly share code, notes, and snippets.

@mrmike
Created January 15, 2014 14:24
Show Gist options
  • Save mrmike/8437163 to your computer and use it in GitHub Desktop.
Save mrmike/8437163 to your computer and use it in GitHub Desktop.
Git Aliases
# 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