summaryrefslogtreecommitdiff
path: root/.config/git/config
blob: 5dc8f201017bd7afa1e2cd0564ee312f917e06e3 (plain)
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
[user]
	name = Benjamin Franzke
	email = ben@bnf.dev
[sendemail]
	smtpencryption = tls
	smtpserver = smtp.gmail.com
	smtpuser = benjaminfranzke@googlemail.com
	smtpserverport = 587
[log]
	decorate = true
[alias]
	grp = !git --no-pager grep --color=auto
	tree = log --oneline --decorate --graph
	t3x-pack = "!sh -c 'git archive -o \"${PWD##*/}_`git describe --tags`.zip\" HEAD'"
	rewrite = rebase -x 'git commit --amend -C HEAD --date=\"$(date -R)\" && sleep 1.05'
	branch-info = "!sh -c 'git branch --no-color | \
		    sed -e \"s/*/ /\" | \
		    while read branch; do \
		    git log -1 --format=format:\"%Cred$branch:%Cblue %s %Cgreen%h%Creset (%ar)\" $branch | cat; echo; \
		    done'"

[push]
	default = simple
	gpgSign = if-asked

[color]
	ui = false
	diff = auto
	status = auto
	branch = auto

[apply]
	whitespace = strip

[credential]
	helper = libsecret

#[diff "minjs"]
#	# See https://scripter.co/git-diff-minified-js-and-css/
#	# npm install -g js-beautify
#	# and in .gitattributes: *.min.js diff=minjs
#        textconv = js-beautify
#        cachetextconv = true
#[diff "mincss"]
#        textconv = js-beautify --css
#        cachetextconv = true