Created
March 16, 2016 09:26
-
-
Save edgarjcfn/5bd492f45fa91e693238 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ga="git add . && git status" | |
| alias gu="git add -u . && git status" | |
| alias gc="git commit -m" | |
| alias gs="git status" | |
| alias mine="git checkout --ours -- " | |
| alias theirs="git checkout --theirs -- " | |
| alias gfuck="git reset --hard && git clean -fd" | |
| # Helper Functions | |
| search() {grep -Ri "$1" .} | |
| ghc() {git clone https://github.com/$1 $2} | |
| gpo() {BRANCH_NAME="$(git rev-parse --abbrev-ref HEAD)" && git push -u origin $BR> | |
| # Jira (project specific story names) | |
| gfb() {git checkout feature/JOBZ-$1/JOBZ-$2} # Git feature Branch | |
| gfbc() {git checkout -b feature/JOBZ-$1/JOBZ-$2} # Git feature Branch create |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment