-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
49 lines (37 loc) · 1.26 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
# vim: set filetype=gitconfig :
[user]
name = trebuh
email = trebuh@users.noreply.github.com
signingkey = 8B751E128FD799D3
[core]
autocrlf = input
pager = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[init]
defaultBranch = main
[pull]
rebase = true
[commit]
gpgsign = true
[push]
default = simple
[tag]
gpgsign = true
[alias]
graph = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
change-commits = "!f() { VAR1=$1; VAR='$'$1; OLD=$2; NEW=$3; echo \"Are you sure for replace $VAR $OLD => $NEW ?(Y/N)\";read OK;if [ \"$OK\" = 'Y' ] ; then shift 3; git filter-branch --env-filter \"if [ \\\"${VAR}\\\" = '$OLD' ]; then export $VAR1='$NEW';echo 'to $NEW'; fi\" $@; fi;}; f "
untag = "!sh -c 'git tag -d $0 && git push origin :refs/tags/$0'"
[delta]
features = decorations
[delta "interactive"]
keep-plus-minus-markers = false
[credential "https://github.com"]
username = trebuh