-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitconfig
75 lines (64 loc) · 1.41 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
[include]
path = ~/.gitconfig_private
[init]
defaultBranch = main
[core]
excludesfile = ~/.gitexclude
whitespace = fix,trailing-space,cr-at-eol
[url "https://"]
insteadOf = git://
[url "[email protected]:"]
pushInsteadOf = git://github.com/
pushInsteadOf = https://github.com/
[pack]
threads = 0
[submodule]
fetchJobs = 0
[rebase]
autosquash = true
; [transfer]
; fsckobjects = true
[fsck]
badTimezone = ignore
[pull]
ff = only
[diff]
renames = copies
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = white
frag = cyan bold
func = magenta
plain = black bold
old = red
new = green
whitespace = red reverse
[color "status"]
branch = yellow reverse
updated = red bold
changed = red
untracked = magenta
[alias]
aliases = !git config --get-regexp '^alias\\..*' | cut -c 7- | sed 's/ / = /' | sort
br = branch
ci = commit
co = checkout
cloner = clone --recursive
rclone = clone --recursive
st = status
s = status -sb
diffs = diff --stat
l = log --oneline --decorate
ll = log @{upstream}.. --oneline --decorate
llog = log @{upstream}.. --decorate
undo = reset --soft HEAD~1
unstage = reset HEAD
amen = commit --amend -C HEAD
amend = commit --amend
ammend = commit --amend
patch = add --patch