-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
94 lines (94 loc) · 2.3 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[protocol]
version = 2
[alias]
aa = add --all
ap = add --patch
branches = "for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:black)%(color:bold)%(refname:short)\" refs/remotes"
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
ps = push
cp = cherry-pick
dic = diff --cached
rbc = !git rebase --continue && git status
rbi = !git fetch origin && git rebase -i origin/master
l = !git log --graph --pretty=colored
cleanup = !git remote prune origin && git gc && git clean -df && git stash clear
wip = !git add -A && "git commit -m 'wip [ci skip]'"
unwip = !test "`git log -n1 --pretty=format:%s`" = "wip" && git reset HEAD~1
unstage = reset -q HEAD --
discard = checkout --
uncommit = reset --mixed HEAD~
amend = commit --amend
nevermind = !git reset --hard HEAD && git clean -d -f
patch = !git --no-pager diff --no-color
[core]
attributesfile = ~/.gitattributes
autocrlf = input
excludesfile = ~/.gitignore
ignorecase = false
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[fetch]
prune = true
[pull]
rebase = false
[push]
default = current
autoSetupRemote = true
[commit]
template = ~/.gitmessage
[merge]
ff = only
[rebase]
autosquash = true
[diff]
# Detect copies as well as renames
renames = copies
compactionHeuristic = true
colorMoved = default
[diff "bin"]
# Use `hexdump` to diff binary files
textconv = hexdump -v -C
[merge]
tool = opendiff
[color]
ui = auto
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
colorMoved = zebra
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = "red bold 52"
newNormal = "green bold"
newHighlight = "green bold 22"
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = yellow
changed = green
untracked = cyan
[credential]
helper = osxkeychain
[pretty]
colored = format:%Cred%h%Creset %s %Cgreen(%cr) %C(bold blue)%an%Creset
[user]
name = Wouter Willaert
email = wouter.willaert@gmail.com
signingkey = C348762F4939A0CE
[help]
autocorrect = 1
[init]
defaultBranch = main
[rerere]
enabled = true
autoUpdate = true
[include]
path = ~/.gitconfig.local