summaryrefslogtreecommitdiff
path: root/.gitconfig
blob: 9d5b7e179d9427471397c422bcebef146fc51e29 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[user]
	name = René 'Necoro' Neumann
	email = necoro@necoro.eu
[alias]
	k = !gitk
	ci = commit
	ca = commit -a
	c = commit -a -m
	cm = commit -m
	co = checkout
	d = diff
	dc = diff --cached
	wd = diff --word-diff
	s = status
	st = status
	suno = status -uno
	alias = "!bash -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -"
	ll = log --name-status --decorate -M -C
	com = checkout master
	cleanse = clean -xfd
	spush = svn dcommit
	spull = svn rebase
	sfetch = svn fetch
[push]
	default = current
[diff]
	rename = copy
[core]
	excludesfile = ~/.gitexcludes
[merge]
	tool = vimdiff

# colors :D
[color]
	ui = auto
	status = false
[color "branch"]
	current = yellow bold
	local = yellow dim
	remote = cyan dim
[color "diff"]
	whitespace = red reverse
	frag = magenta
[color "decorate"]
	tag = green bold
	branch = yellow bold

# this allows to write 'nec:bla/blubb'
[url "https://git.necoro.dev/"]
	insteadOf = "nec:"

[url "ssh://git@git.necoro.dev/"]
	pushInsteadOf = "nec:"
	pushInsteadOf = "https://git.necoro.dev/"
	pushInsteadOf = "https://git.necoro.eu/"

[init]
	defaultBranch = master

# vim: noexpandtab