-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
111 lines (89 loc) · 2.4 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[core]
excludesfile = ~/.gitignore.global
attributesfile = ~/.gitattributes.global
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = less --tabs 4
untrackedcache = true
autocrlf = input
precomposeunicode = false
[init]
defaultBranch = main
[apply]
whitespace = fix
[branch]
sort = -committerdate
[user]
name = Alexandru Ciobanu
email = [email protected]
[submodule]
recurse = true
[push]
default = simple
followTags = true
autoSetupRemote = true
[pull]
ff = only
[pull]
log = true
[fetch]
prune = true
pruneTags = true
[grep]
extendedregexp = true
linenumber = true
[help]
autocorrect = 1
[alias]
ci = commit
co = checkout
st = status -sb
au = add --update
aa = add --all
yolo = !git add . && git commit && git push
prunea = !git branch -vv | grep -v origin | awk '{print $1}' | xargs git branch -D
taga = !git tag -l | xargs git tag -d && git fetch -t || git fetch -t || git fetch -t
sync = !git prunea && git taga && git pull
ob = !git rev-parse --abbrev-ref --symbolic-full-name @{u} | cut -d'/' -f2
update = !git ob >/dev/null && git fetch origin $(git ob) >/dev/null && git merge origin $(git ob) >/dev/null
lc = log --decorate=short --graph --pretty=format:\"%C(red)%h%C(reset) %C(green)%s%C(reset) - %C(yellow)(%ar)%C(reset) %C(blue)%C(bold)<%an>%C(auto)%d\" --color=always
ls = stash list --pretty=format:\"%C(red)%gd%C(reset) %C(green)%s%C(reset) - %C(yellow)(%ar)%C(reset)\"
lb = branch --all --list --verbose
bs = !git branch --no-color --no-column | sed 's/^[\\ *]*//' | fzf --preview-window=default --preview 'git lc {}' | (read X && git checkout $X)
[diff "bin"]
textconv = hexdump -v -C
[diff]
renames = copies
[color]
ui = true
branch = auto
diff = auto
interactive = auto
pager = true
status = auto
[color "branch"]
current = yellow bold
local = green bold
remote = cyan bold
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
whitespace = red reverse
[color "status"]
added = green bold
changed = yellow bold
untracked = red bold
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://github.com/"]
insteadOf = "github:"