-
Notifications
You must be signed in to change notification settings - Fork 5
/
gitconfig
63 lines (61 loc) · 1.54 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
55
56
57
58
59
60
61
62
63
[user]
email = [email protected]
name = John Barton
[color]
branch = auto
diff = auto
status = 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
[push]
default = current
[fetch]
prune = true
[apply]
whitespace = strip
[branch]
autosetupmerge = true
[alias]
track = !sh -c 'git branch --track "$0" "origin/$0" && git checkout "$0"'
ignored = "!git ls-files --others --exclude-standard"
st = status
cav = commit -a -v
cv = commit -v
co = checkout
root = !pwd
force = push --force-with-lease
serve = daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
unmerged = !git branch -r --no-merged | grep -v HEAD | xargs -L1 git --no-pager log --pretty=tformat:'%Cgreen%d%Creset - %h by %an (%Cblue%ar%Creset)' -1
merged = !git branch -r --merged | grep -v HEAD | xargs -L1 git --no-pager log --pretty=tformat:'%Cgreen%d%Creset - %h by %an (%Cblue%ar%Creset)' -1
bclean = "!f() { git branch --merged ${1-master} | grep -v " ${1-master}$" | xargs -r git branch -d; }; f"
[core]
mergeoptions = --no-ff
pager = less -r
excludesfile = ~/.gitignore_global
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[url "[email protected]:"]
insteadOf = git://github.com/
[rerere]
enabled = true
[http]
cookiefile = /Users/joho/.gitcookies
[diff]
renameLimit = 1024
[pager]
branch = false
tag = false
[init]
defaultBranch = main