summaryrefslogtreecommitdiffstats
path: root/gitconfig
blob: 7c3eb1bbdfa7e37138a9e67c6bba4cf0cd6f5212 (plain) (blame)
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
[user]
	email = doy@tozt.net
	name = Jesse Luehrs
[alias]
	pushall = "!f() { for repo in origin github; do git push $repo \"$@\"; done; }; f"
	amend = !git add -p && git commit --amend
	record = !git add -p && git commit --verbose
	rebase-branch = !git rebase -i $(git merge-base master HEAD)
	diff-branch = !git diff master..HEAD
	log-branch = !git log master..HEAD
	review-branch = !git review master..HEAD
	review = "!f() { for rev in $(git rev-list --reverse \"$@\"); do git show $rev; done; }; f"
	info = remote show -n origin
	graph = log --all --graph --color=always --pretty='[%C(cyan)%h%Creset]%C(bold cyan)%d%Creset %s'
	prune-all = !git remote | xargs -n 1 git remote prune
	alias = "!f() { local name=$1; shift; git config --global alias.$name \"$*\"; }; f"
	aliases = !git config --get-regexp 'alias.*' | colrm 1 6 | sed 's/[ ]/ = /'
	lg = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(bold blue)%aN %Cgreen(%ar)%Creset%n%s%n' --abbrev-commit --date=relative --stat=72
	lgs = log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %C(bold blue)%aN %Cgreen(%ar)%Creset%n%s%n' --abbrev-commit --date=relative
	st = status -sb
	ch = "!f() { git cherry \"$@\" | grep -v '^-' | sed 's/^..//' | xargs -n1 git log --oneline -1 | cat | perl -ple 's/([^ ]+)/\\e[33m$1\\e[m/'; }; f"
	ff = merge --ff-only
	cc = cherry-pick
	rv = checkout -p
	re = rebase -i @{u}
	git = "!f() { git \"$@\"; }; f"
	vim = "!f() { vim \"$@\"; }; f"
	up = !git remote update && git pull && git prune-all
	co = checkout
	r = !git add -p && git commit --verbose
	br = branch
[github]
	user = doy
[color]
	ui = auto
[core]
	excludesfile = /home/doy/.gitignore
[push]
	default = current
[branch]
	autosetuprebase = always
[merge]
	tool = vimdiff
	conflictstyle = diff3
[rebase]
	stat = true
	autosquash = true
[help]
	autocorrect = 5
[diff]
	renames = true
	mnemonicprefix = true
[advice]
	pushUpdateRejected = false
	statusHints = false
	commitBeforeMerge = false
	resolveConflict = false
	detachedHead = false
[rerere]
	enabled = true
[include]
	path = .gitconfig.private

; vim:ft=gitconfig: