Skip to content

Instantly share code, notes, and snippets.

@rex
Created August 8, 2013 19:29
Show Gist options
  • Save rex/6187864 to your computer and use it in GitHub Desktop.
Save rex/6187864 to your computer and use it in GitHub Desktop.
alias gll='git stash save --include-untracked && git pull --rebase origin $(current_branch) && git stash pop'
alias gs="git status -sb"
alias peek='git fetch origin $(current_branch) && git lg origin/$(current_branch)'
alias gaa='git add -u .'
alias gpp='echo "Starting push" && git push --all origin $(current_branch) && echo "Pushing Tags" && git push --tags origin $(current_branch) && echo "Push complete"'
alias gr='git reset'
alias grh='git reset --hard'
alias commit='echo "----------- COMMITTING TO BRANCH: $(current_branch) ----------" && gll && gaa && git commit'
alias sync='echo "----------- SYNCING BRANCH: $(current_branch) ------------" && git stash save --include-untracked && git pull --rebase origin $(current_branch) && git push origin $(current_branch) && git stash pop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment