-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
29 lines (27 loc) · 965 Bytes
/
.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
[user]
email = [email protected]
name = Conner R. Phillips
[core]
attributesfile = ~/.gitattributes_global
[filter "nbstrip_full"]
# jq reads json from stdin and applies these operations to it. It strips output, execution counts, and metadata (collapsed or not etc...) so that they do not clutter git diffs.
clean = "jq --indent 1 \
'(.cells[] | select(has(\"outputs\")) | .outputs) = [] \
| (.cells[] | select(has(\"execution_count\")) | .execution_count) = null \
| .cells[].metadata = {} \
'"
smudge = cat
required = true
[diff "jupyternotebook"]
command = git-nbdiffdriver diff
[merge "jupyternotebook"]
driver = git-nbmergedriver merge %O %A %B %L %P
name = jupyter notebook merge driver
[difftool "nbdime"]
cmd = git-nbdifftool diff \"$LOCAL\" \"$REMOTE\"
[difftool]
prompt = false
[mergetool "nbdime"]
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[mergetool]
prompt = false