Skip to content

Instantly share code, notes, and snippets.

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 MACSkeptic/db5f675a1221752370f565ecf8263140 to your computer and use it in GitHub Desktop.
Save MACSkeptic/db5f675a1221752370f565ecf8263140 to your computer and use it in GitHub Desktop.
git aliases
alias.sup=for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
alias.co=checkout
alias.lol=log --oneline --decorate
alias.rhh=!git reset HEAD^ && git reset
alias.st=status -s
alias.rr=!git reset HEAD^ && git reset
alias.dc=diff --cached -w
alias.rc=rebase --continue
alias.aa=add -A .
alias.prom=pull --rebase origin master
alias.nukeme=!git branch -a | grep mozair | grep "remotes/origin/" | cut -d "/" -f 3- | xargs -n 1 git push --delete origin
alias.pu=!git push -u origin `git branch | grep '*' | sed s/..//`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment