Last active
September 18, 2015 08:12
-
-
Save filipgorczynski/87977b0830bcc366afc3 to your computer and use it in GitHub Desktop.
git aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| st = status | |
| ci = commit | |
| br = branch -v | |
| co = checkout | |
| df = diff | |
| lg = log -p | |
| up = pull | |
| who = shortlog -s -- | |
| diff = diff --no-prefix | |
| totest = push origin HEAD:refs/for/test | |
| llog = log --pretty=\"format:%C(yellow normal)%h %Cgreen%an %C(cyan normal)(%ci) %Creset%s\" | |
| whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -" | |
| whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short | |
| getp = !sh -c 'git diff --no-prefix $1^ $1' - | |
| sup = !sh -c 'git log trunk --reverse --pretty=oneline --grep=\"?id=$1\"' - | |
| bf = !sh -c 'git log trunk --reverse --pretty=oneline --grep=\"BUGFIX\"' - | |
| tags = for-each-ref refs/tags/ --format=\"(%(taggerdate)) %(tag) %(subject)\" --sort=\"taggerdate\" | |
| graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f" | |
| wu = log --stat origin..@{0} | |
| wup = log -p origin..@{0} | |
| out = log --pretty=oneline --abbrev-commit --graph @{u}.. | |
| in = !git fetch && git log --pretty=oneline --abbrev-commit --graph ..@{u} | |
| glog = log --pretty=oneline --graph --decorate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment