Skip to content

Instantly share code, notes, and snippets.

@fuzzygroup
Created March 12, 2017 10:09
Show Gist options
  • Save fuzzygroup/8bb1f7fe36e435c85fb3b231ecec4f60 to your computer and use it in GitHub Desktop.
Save fuzzygroup/8bb1f7fe36e435c85fb3b231ecec4f60 to your computer and use it in GitHub Desktop.
alias gundo='git reset --soft HEAD~1'
function gc() {
git commit -m "$*"
}
function ga() {
git add "$*"
}
alias gcurrentbranch='git rev-parse --abbrev-ref HEAD'
alias gaa='git add .'
alias gs='git status'
alias gl='git log --oneline'
alias gpc='git push origin $(gcurrentbranch)'
function ghelp() {
echo "ga (add one) gc (commit) gpc (push) gaa (add all) gs (status) gl (log) gcurrentbranch (show branch) gundo (be careful!)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment