Repository navigation
Expand file tree
/
Copy pathgitconfig
More file actions
104 lines (91 loc) · 3.02 KB
/
Copy pathgitconfig
File metadata and controls
104 lines (91 loc) · 3.02 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[core]
# Use custom `.gitignore`
excludesfile = ~/.gitignore
# Git only reads ~/.config/git/attributes by default, so the mergiraf
# driver in ~/.gitattributes needs this to activate
attributesfile = ~/.gitattributes
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error
whitespace = space-before-tab,trailing-space
autocrlf = input
# git only pages terminal output, so agents and scripts reading `git diff`
# still get the raw patch
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
[init]
defaultBranch = main
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[merge "mergiraf"]
name = mergiraf
driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P -l %L
[pull]
rebase = true
[user]
name = Ben Swift
email = ben@benswift.me
[github]
user = benswift
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[magit]
hideCampaign = true
[magithub]
online = true
[magithub "status"]
includeStatusHeader = true
includePullRequestsSection = true
includeIssuesSection = true
[url "git@github.com:"]
insteadOf = https://github.com/
# COMP4020 crit agents (weddle only; TASK-28.1 AC#3/#4): interactive sessions
# inside an agent's directory commit as that agent, not as Ben. Scheduled runs
# don't read this file at all (they run with HOME=<agent dir>); these entries
# cover the convenor's own sessions. Trailing / makes the match recursive, and
# the entries are inert on machines without these directories.
[includeIf "gitdir:~/projects/comp4020/agents/shitao/"]
path = ~/projects/comp4020/agents/shitao/.gitconfig
[includeIf "gitdir:~/projects/comp4020/agents/bada/"]
path = ~/projects/comp4020/agents/bada/.gitconfig
[includeIf "gitdir:~/projects/comp4020/agents/baishi/"]
path = ~/projects/comp4020/agents/baishi/.gitconfig
[includeIf "gitdir:~/projects/comp4020/agents/dachi/"]
path = ~/projects/comp4020/agents/dachi/.gitconfig
[includeIf "gitdir:~/projects/comp4020/agents/yunlin/"]
path = ~/projects/comp4020/agents/yunlin/.gitconfig
[includeIf "gitdir:~/projects/comp4020/agents/liuru/"]
path = ~/projects/comp4020/agents/liuru/.gitconfig
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://git.overleaf.com"]
helper =
helper = "!f() { test \"$1\" = get && echo username=git && echo \"password=$OVERLEAF_GIT_TOKEN\"; }; f"