4,461
edits
dump from oldwiki |
→Useful git aliases: update aliases |
||
Line 124: | Line 124: | ||
br = branch | br = branch | ||
df = difftool | df = difftool | ||
hist = log --pretty= | hist = log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(bold blue)[%an]\" --graph --date=short | ||
histall = log --pretty= | hist2 = log --graph --abbrev-commit --decorate --date=relative --format=tformat:'%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 blue)\" --graph --date=short | ||
hist10 = !git log --pretty= | histall = log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all | ||
hist10all = !git log --pretty= | hist10 = !git log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short | head -n 10 | ||
hist10all = !git log --pretty=tformat:\"%C(yellow)%h %C(green)%ad %Creset| %s%C(red)%d %C(blue)[%an]\" --graph --date=short --all | head -n 10 | |||
listnames = diff-tree --no-commit-id --name-status -r | |||
type = cat-file -t | type = cat-file -t | ||
dump = cat-file -p | dump = cat-file -p | ||
ignore = update-index --assume-unchanged | ignore = update-index --assume-unchanged | ||
track = update-index --no-assume-unchanged | track = update-index --no-assume-unchanged | ||
ignorelist = !git ls-files -v | grep -s ^'h ' | cut -b 1-2 --complement[diff] | |||
[diff] | |||
tool = vimdiff | tool = vimdiff | ||
[difftool] | [difftool] |