-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
95 lines (76 loc) · 1.79 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
# .gitconfig: Configures Git settings and aliases.
[alias]
amend = commit --amend
br = branch
ci = commit
smart-commit = "!f() { \
set +o noclobber; \
COMMIT_MSG=\$(commit-gen < /dev/tty > /dev/tty 2>&1); \
if [ \$? -eq 0 ]; then \
echo \"\$COMMIT_MSG\" > /tmp/commit_msg && \
git commit --file=/tmp/commit_msg --edit && \
rm -f /tmp/commit_msg; \
else \
echo 'Error generating commit message.' >&2; \
exit 1; \
fi; \
set -o noclobber; \
}; f"
sci = smart-commit
co = checkout
d = diff
ds = diff --staged
del-branch = "!f() { git push origin --delete \"$1\"; }; f"
fixup = commit --amend --no-edit
lg = log --oneline --graph --decorate
lga = log --all --oneline --graph --decorate
lgm = log --pretty=format:"%C(auto)%h %C(bold blue)%an %C(auto)%d %s%n%b%C(reset)" --graph --decorate --abbrev-commit
pushf = push --force-with-lease
ri = rebase -i
save = stash save
st = status
undo = reset HEAD~1
[color]
ui = true
[commit]
gpgSign = true
template = ~/.gitmessage
[core]
autocrlf = input
editor = code --wait
excludesfile = ~/.gitignore_global
pager = less -RFX
[credential]
helper = cache
[diff]
tool = code
[difftool "code"]
cmd = code --wait --diff $LOCAL $REMOTE
[github]
user = jekwwer
[init]
defaultBranch = main
[log]
abbrevCommit = true
decorate = short
graph = true
[format]
pretty = format:%C(auto)%h %C(bold blue)%an %C(auto)%d %s %C(dim white)(%ar)
[merge]
conflictstyle = diff3
tool = code
[mergetool "code"]
cmd = code --wait $MERGED
[pull]
rebase = true
[push]
default = simple
[rebase]
autoStash = true
[rerere]
enabled = true
[tag]
sort = version:refname
[user]
email = [email protected]
name = Evgenii Shiliaev