Created
July 10, 2019 11:56
-
-
Save claudiobastos/33ad79b90b3777d96033c608dc67d263 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] | |
| br = branch | |
| changes = diff --name-status -r | |
| ciall = commit -a | |
| ci = commit | |
| co = checkout | |
| commitsde = --log --follow | |
| criadosem = --log --dif-filter=A | |
| dc = diff --cached | |
| df = diff | |
| diffstat = diff --stat -r | |
| graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f" | |
| lc = log ORIG_HEAD.. --stat --no-merges | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%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(dim white)- %an%C(reset)' --all | |
| lg3 = !"git lg1" | |
| llog1 = log --date=local | |
| llog = lg --date=local | |
| mods1 = diff-tree --no-commid-id --name-only -r | |
| mods2 = show --pretty=format: --name-only | |
| new = !sh -c 'git log $1@{1}..$1@{0} "$@"' | |
| undomess = reset HEAD | |
| stoptrack = update-index --assume-unchanged | |
| stop-no-observe = update-index --no-assume-unchanged | |
| stop-observe = update-index --assume-unchanged | |
| st = status | |
| stop-track = untrack | |
| tagc = "! f() { now=$(date +%Y%m%d-%H%M%S); echo "git tag ${1}-$now"; git tag ${1}-$now; }; f " | |
| untrack = rm --cache -- | |
| whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short | |
| who = shortlog -s -- | |
| whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -" | |
| llog = lg --date=local | |
| thor = "$1"' = - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment