-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitconfig
More file actions
86 lines (67 loc) · 2.11 KB
/
Copy path.gitconfig
File metadata and controls
86 lines (67 loc) · 2.11 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[user]
name = Winston Tsang
email = winstont [at] umich [dot] edu
[alias]
st = status
sta = stash
ci = commit
br = branch
co = checkout
df = diff
lf = log ORIG_HEAD.. --stat --no-merges
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar)%Creset %C(ul)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lgstat = log --stat --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar)%Creset %C(ul)(%cr)%Creset %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
loc = log --pretty=format:'%C(yellow)%h%Creset %>(12)%C(green)%ar%Creset %<(18)%C(bold blue)%aN%Creset %C(red)%d%Creset %s'
lo1 = log --graph --oneline --decorate
lon = log --show-notes=* --graph --decorate
lan = log --graph --decorate
lpatch = log -p
last = log -1 HEAD
hist = log --pretty=format:'%C(green)%ad%Creset | %h | %s%d [%an]' --graph --date=iso
rt = remote
wc = whatchanged
track = branch --set-upstream-to
branch-owner = for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)'
aliases = config --get-regexp alias
compare = log --left-right --graph --cherry-pick --oneline --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset'
compare-simple = log --left-right --graph --cherry-pick --oneline
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`"
[init]
defaultBranch = main
[push]
default = simple
[pull]
ff = only
[core]
excludesfile = ~/.gitignore_global
editor = vim
[apply]
whitespace = nowarn
[merge]
tool = vimdiff
[diff]
colorMoved = default
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[rerere]
enabled = true
# auto use the prune flag when fetching
[fetch]
prune = true