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?
[alias]
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.
Written by Łukasz Niemier
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Alias
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#