This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
61 lines (53 loc) · 1.69 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
[core]
editor = vim
excludesfile = ~/.gitignore
[gpg]
program = gpg2
[init]
templatedir = ~/.git_template
[pretty]
changelog = format:%C(auto,yellow)%H %C(auto,reset)%s
whatis = format:%C(auto,bold blue)%ad%Creset %C(auto,yellow)%h %C(auto,green)%an%Creset %C(auto,white)%s
summary = format:%C(auto,yellow)%h %C(auto,green)%an %C(auto,reset)%s
[alias]
# More verbose onelined logs
# Show all branches
al = log --oneline --all --decorate
# Apply black formater to all tracked python files
# No arguments
black = !.git/hooks/black
# Regenerate tag file at .git/tags
# No arguments
ctags = !.git/hooks/ctags
# Changelog
changelog = log --pretty=changelog --no-merges
# Run the flake8 on unified diff
# Arguments are passed to git diff
flake8 = !.git/hooks/flake8
# Pretty-fied one lined log
ol = log --pretty=summary
# Onelined log graph
og = ol --graph
# Short status
ss = status --short --branch --untracked-files=no
sa = status --short --branch --untracked-files=normal
sal = al -n 20
sag = ag -n 20
sol = ol -n 20
srl = reflog -n 20
# Show author and title of single commit
whatis = show -s --pretty=whatis --date=short
rekt = log --oneline --all --decorate --graph
[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\" \"$BASE\"
[difftool]
prompt = false
[mergetool "nbdime"]
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[mergetool]
prompt = false