Skip to content

Instantly share code, notes, and snippets.

@stakira
Created February 14, 2018 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stakira/aae6a04ea30ba8d301936144623f52e5 to your computer and use it in GitHub Desktop.
Save stakira/aae6a04ea30ba8d301936144623f52e5 to your computer and use it in GitHub Desktop.
git shortcuts
alias gits="git status"
alias gitf="git fetch --prune"
alias gitfm="git fetch --prune && git fetch origin master:master"
alias git-repush="git fetch --prune && git rebase origin/master && git push origin HEAD -f"
alias gitp="git push origin `git symbolic-ref -q HEAD`"
alias gitpf="git push origin `git symbolic-ref -q HEAD` -f"
alias gitrs="git reset --hard && git clean -f -d"
alias gitrb="git reset --hard && git rebase origin/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment