Skip to content

Instantly share code, notes, and snippets.

@edgarjcfn
Created March 16, 2016 09:26
Show Gist options
  • Select an option

  • Save edgarjcfn/5bd492f45fa91e693238 to your computer and use it in GitHub Desktop.

Select an option

Save edgarjcfn/5bd492f45fa91e693238 to your computer and use it in GitHub Desktop.
# 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