forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
63 lines (49 loc) · 1.6 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
[core]
# Treat spaces before tabs and all kinds of trailing whitespace as an error.
# [default] trailing-space: looks for spaces at the end of a line
# [default] space-before-tab: looks for spaces before tabs at the beginning of a line
#whitespace = space-before-tab,-indent-with-non-tab,trailing-space
# speed.
# https://git-scm.com/docs/git-update-index#Documentation/git-update-index.txt---untracked-cache
untrackedCache = true
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[user]
name = Rudxain
email = [email protected]
[commit]
# https://docs.github.com/en/authentication/managing-commit-signature-verification
gpgsign = true
[init]
# solves racism /s
defaultBranch = main
[remote "origin"]
prune = true
[branch]
# recent 1st
sort = -committerdate
[diff]
renames = copies
[diff "bin"]
textconv = hexdump -v -C
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[alias]
dm = "!git branch --merged | grep -v '\\*' | xargs -rn 1 git branch -d"
# is this a bad idea?
#push-all = !git add ':(exclude,attr:builtin_objectmode=160000)' && git commit -av && git push
l = log --pretty=oneline -n 16 --graph --abbrev-commit
tags = tag -l
# `-r` doesn't seem necessary if `-a` is present
branches = branch -ra
remotes = remote --verbose
aliases = config --get-regexp alias
fm = "!f() { git log --decorate --date=short --grep=$1; }; f"
contributors = shortlog --summary --numbered