Advertisement
alaskanshade

Untitled

Apr 8th, 2014
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. abbr => !sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=format:"%H %ci
  2. %an %s%n" $commit; done' -
  3. add-unmerged => !f() { git diff -name-status --diff-filter=U | cut -f2 ; }; git add `f`
  4. alias => !git config --list | grep 'alias\.' | sed 's/alias\.\([^=]*\)=\(.*\)/\1\t=> \2/' | sort
  5. br => branch
  6. changes => diff --name-status -r
  7. ci => commit
  8. co => checkout
  9. dc => diff --cached
  10. df => diff
  11. diffstat => diff --stat -r
  12. done => !f() { git branch | grep $1 | cut -c 3- | grep -v done | xargs -I{} git branch -m {} done-{}; }; f
  13. edit-unmerged => !f() { git diff -name-status --diff-filter=U | cut -f2 ; }; vim `f`
  14. filelog => log -u
  15. fl => log -u
  16. graph => log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' -
  17. -abbrev-commit --date=relative
  18. graph2 => log --graph --all --format=format:'%C(bold yellow)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)
  19. %C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)- %an%C(reset)' --abbrev-commit
  20. ibr => !f() { git checkout release && git checkout -b $1; }; f
  21. lc => log ORIG_HEAD.. --stat --no-merges
  22. llog => log --date=local
  23. prune-all => !git remote | xargs -n 1 git remote prune
  24. pushtest => !sh push_to_test.bash
  25. st => status
  26. whatis => show -s --pretty='tformat:%h (%s, %ad)' --date=short
  27. who => shortlog -s --
  28. whois => !sh -c 'git log -i -1 --pretty="format:%an <%ae>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement