Last Updated: February 25, 2016
· hauleth

My awesome git aliases

I like because it is like swiss knife. It can do almost everything in just few keystrokes. But why not make this keystrokes even less?

  ca        = commit --amend --reuse-message=HEAD
  ci        = commit
  cl        = clone
  cleanse   = "!git ls-files --others --exclude-standard | xargs rm"
  co        = checkout
  lg        = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
  st        = status -sb
  todo      = grep --heading --break --ignore-case -e 'TODO:'
  fix       = grep --heading --break --ignore-case -e 'FIX:' -e 'FIXME:'
  conflicts = !git ls-files -u | cut -f 2 | sort -u
  root      = !cd $(git rev-parse --show-toplevel)

Description of all of this aliases can be found on my blog post.

1 Response
Add your response


grep --heading --break --ignore-case -e 'FIX:' -e 'FIXME:'

this should be
grep --heading --break --ignore-case -e '\bFIX\b:' -e '\bFIXME\b:'
as original greps 'prefix:' and other similar words

over 1 year ago ·