-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathgitconfig
43 lines (43 loc) · 1.03 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
[user]
name = Andrey Sitnik
email = andrey@sitnik.ru
signingKey = key::ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDwZrgt8W9uGndgD2aoMOjN0lhvFYsYzfietr5gu5lUV andrey@sitnik.ru
[alias]
current-branch = "!git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \\(.*\\)/\\1/'"
a = "!git add . && git s"
ch = "!echo 'Stop using git checkout' && false"
c = commit -S -m
s = status --short --branch
d = diff
l = "!git pull origin $(git current-branch) --rebase"
h = "!git push origin $(git current-branch)"
lh = "!git l && git h"
r = "!git rm $(git ls-files --deleted) && git status"
hf = push --force-with-lease
sw = switch
[color]
diff = auto
status = auto
branch = auto
[branch]
autosetuprebase = always
[core]
autocrlf = input
editor = micro
hooksPath = /dev/null
[init]
defaultBranch = main
[gpg]
format = ssh
[commit]
gpgsign = true
[push]
default = current
followtags = true
[rerere]
enabled = true
[diff]
external = difft
algorithm = histogram
colorMoved = true
indentHeuristic = true