-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
54 lines (46 loc) · 1.13 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
[user]
name = Patrick Gilday
email = [email protected]
[hub]
protocol = ssh
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[core]
editor = /usr/bin/vim
excludesfile = ~/.gitignore-global
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[push]
default = simple
followTags = true
[color]
branch = auto
diff = auto
status = auto
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color "decorate"]
tags = cyan
[alias]
# pr/pr-clean - https://gist.github.com/gnarf/5406589
pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f"
pr-clean = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done"
pushfwl = "push --force-with-lease"
prune-up = remote update origin --prune
# diff show filenames only
df = diff --name-status