-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
82 lines (62 loc) · 1.68 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
#
# GitConfig
#
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = git://github.com/
[user]
[core]
# if you use windows
#autocrlf = true
# use aggressive compression
# can make your repo smaller but can also be slow
compression = 9
# lets you define a global .gitignore for all those
# *.swp, *~, *.o, etc things that you're frequently
# sticking in .gitignore
excludesfile = ~/.gitignore_global
# tells git to ignore file permission changes
filemode = false
# lets you tweak the default pager
# see `man less` for the meaning of these flags
#pager = 'less -FRSX'
# probably not a good default for most projects,
# but you should uncomment with something based on your needs
#whitespace = tab-in-indent
# editor
editor = vim
[color]
# this turns on default colors for many commands
# or you can customize specific colors per command (see [3] for example)
ui = true
status = auto
branch = auto
[rerere]
# google `git rerere`, basically git remembers your
# partial merge choices and replays them next time
enabled = true
autoupdate = true
[push]
# lets you say just `git push origin` to push the current branch
default = current
[pull]
ff = only
[branch]
autosetuprebase = always
[rebase]
autosquash = true
[merge]
tool = opendiff
[mergetool "opendiff"]
keepBackup = false
trustExitCode = false
[diff]
tool = opendiff
[alias]
co = checkout
ci = commit
st = status
br = branch -av
brdel = branch -D
aliases = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\ \t => \\2/' | sort