-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
77 lines (60 loc) · 1.28 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
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = red reverse
local = blue
remote = green
[color "diff"]
meta = yellow
frag = magenta
old = red bold
new = green
plain = white
[color "status"]
added = green
changed = yellow
untracked = cyan
[user]
email = mameto_100@mail.bg
name = tunnckoCore
user = tunnckoCore
signingkey = XXX
[commit]
gpgsign = true
[push]
followTags = true
[github]
username = tunnckoCore
token = XXX
[alias]
empty = "!git commit -am\"[empty] Initial commit\" --allow-empty"
cp = cherry-pick
st = status -s
cl = clone
ci = commit -S
co = checkout
br = branch
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
find = "!git ls-files | grep -i"
f = "!git ls-files | grep -i"
diff = diff --word-diff
dr = "!f() { git diff "$1"^.."$1"; }; f"
lc = "!f() { git diff "$1"^.."$1"; }; f"
la = "!git config -l | grep alias | cut -c 7-"
ls = log --oneline --decorate
grep = grep -Ii
gr = grep -Ii
filelog = log -u
fl = log -u
lasttag = describe --tags --abbrev=0
lt = describe --tags --abbrev=0
ras = "!f() { git remote add $1 git@github.com:$2.git; }; f"
ra = "!f() { git remote add $1 https://github.com/$2.git; }; f"
wl = worktree list