-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
75 lines (75 loc) · 2.02 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
[user]
name = Gadzhi Gadzhiev
email = [email protected]
[core]
editor = vim
excludesfile = ~/.gitignore_global
autocrlf = input
[alias]
co = checkout
st = status -s
l = log --graph --pretty=format':%Cgreen%d%Creset %s %C(white) %an%Creset'
lx = log --graph --pretty=format':%C(yellow)%h%Cgreen%d%Creset %s %C(white) %an <%ae>, %ar%Creset'
ll = log --graph --pretty=format':%C(yellow)%h%Creset %s %C(white) %Creset'
lol = log --
unstage = reset HEAD --
last = log -1 HEAD
amend = commit --amend --reuse-message=HEAD
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
c = clone --recursive
go = "!f() { git checkout -b \"$1\" 2> /dev/null || git checkout \"$1\"; }; f"
tags = tag -l
branches = branch -a
remotes = remote -v
contributors = shortlog --summary --numbered
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[diff]
renames = copies
[diff "bin"]
textconv = hexdump -v -C
[merge]
tool = vimdiff
[github]
user = resure
[url "[email protected]:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "[email protected]:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[url "[email protected]:"]
insteadOf = "ygh:"
pushInsteadOf = "ygithub:"
pushInsteadOf = "git://github.yandex-team.ru/"
[push]
default = simple
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
process = git-lfs filter-process
[url "[email protected]:"]
insteadOf = https://bb.yandex-team.ru/
[init]
defaultBranch = main