-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
67 lines (50 loc) · 2.68 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# Author: Ash <[email protected]>
#
[include]
path = .gitconfig-userinfo
[color]
ui = always
[color "status"]
header = blue
[color "grep"]
filename = magenta
[core]
autocrlf = false
pager =
[diff]
tool = meld
[difftool]
prompt = false
[alias]
type = "cat-file -t"
dump = "cat-file -p"
empty-tree-sha1 = "hash-object -t tree /dev/null"
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = "show --stat --pretty=tformat:\"%C(red)%h %C(magenta)%cd %C(blue)%an %C(green)%d %C(reset)%n%C(yellow)%s%C(reset)%n%n%C(cyan)%b%C(reset)\""
stat = "show --stat --pretty=tformat:\"%C(red)%h %C(magenta)(%cr) %C(blue)%an %C(bold green)%d %C(reset)%s\""
listfiles = "ls-tree -r --name-only"
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
tree = "forest --pretty=format:\"%C(magenta)(%cr) %C(blue)%an %C(reset)%s\" --style=15 --sha --highlight-sha --reverse"
lgf = "forest --pretty=format:\"%C(magenta)(%cr) %C(blue)%an %C(reset)%s\" --style=15 --sha --highlight-sha"
lg = "log --graph --decorate --abbrev-commit --pretty=tformat:\"%C(red)%h %C(magenta)(%cr) %C(blue)%an%C(green)%d %C(reset)%s\""
lc = "log --stat --no-merges"
logstat = "log --stat --pretty=tformat:\"\n%C(red)%h %C(magenta)(%cr) %C(blue)%an %C(bold green)%d %C(reset)%s\" --reverse"
abbr = "!sh -c 'git rev-list --all | grep ^$1 | while read commit; do git --no-pager log -n1 --pretty=tformat:\"%C(red)%h %C(magenta)%cd %C(blue)%an%C(green)%d %C(reset)%s\" $commit; done' -"
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
get-unreachable-objects = "fsck --unreachable --no-reflogs"
get-unreachable-commits = "!git get-unreachable-objects 2>/dev/null | grep 'unreachable commit' | awk '{print $3;}'"
get-unreachable-trees = "!git get-unreachable-objects 2>/dev/null | grep 'unreachable trees' | awk '{print $3;}'"
get-lost-index-changes = "fsck --unreachable --no-reflogs --cache --lost-found"
unreachable-commits-graph = "!git tree $(git get-unreachable-commits)"
webui = !~/.git-webui/release/libexec/git-core/git-webui
[instaweb]
local = true
httpd = webrick
port = 12345
browser = chromium
[webui]
autoupdate = true
[http]
cookiefile = ~/.gitcookies