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