-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
33 lines (33 loc) · 904 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
30
31
32
33
# -*- mode: conf; tab-stop-list: (4 8 12 16 20 24 28 32 36 40) -*-
[user]
name = Justin Bogner
email = [email protected]
[color]
ui = auto
[core]
whitespace = cr-at-eol
pager = type git-gh-pager >/dev/null 2>&1 && exec git-gh-pager || exec less
[diff]
renames = copy
colorMoved = plain
[merge]
conflictstyle = diff3
[pack]
compression = 9
[push]
default = tracking
[rebase]
autosquash = true
[rerere]
enabled = 1
[web]
browser = x-www-browser
[browser "x-www-browser"]
cmd = x-www-browser
[alias]
current-branch = !git branch 2>/dev/null | awk '/\\*/ {print $2}'
difftool = !sh -c 'git diff -U99 "$@" | kompare -o -' git-difftool
graph = log --graph --format='%C(auto)%h%d %s %C(green)-- %an, %cr'
ff = pull --ff-only
ncommits = "!f () { git log --oneline "$@" | wc -l; }; f"
unmerged = diff --name-only --diff-filter=U