Created
February 14, 2018 23:38
-
-
Save stakira/aae6a04ea30ba8d301936144623f52e5 to your computer and use it in GitHub Desktop.
git shortcuts
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 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