Created
March 12, 2017 10:09
-
-
Save fuzzygroup/8bb1f7fe36e435c85fb3b231ecec4f60 to your computer and use it in GitHub Desktop.
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
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