-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
.gitconfig
104 lines (85 loc) · 2.31 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
96
97
98
99
100
101
102
103
104
[user]
email = [email protected]
name = Abhishek Keshri
signingkey = ~/.ssh/id_ed25519.pub
[alias]
a = add
# Ignores whitespace changes, code movement, and renames
bl = blame -w -C -C -C --color-lines --color-by-age
c = commit -m
co = checkout
d = diff --word-diff -M -C
l = pull
m = merge
p = push
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
# Takes regex as argument and searches for it in the entire git history
pi = log -p -S
re = rebase -i
s = status -s
sw = switch
alias = config --get-regexp alias
stash = stash -all
tag = tag -s
unstash = stash pop
# List contributors with number of commits.
contributors = shortlog --summary --numbered
# Interactive rebase with the given number of latest commits.
reb = "!r() { git rebase -i HEAD~$1; }; r"
# Find commits by source code
fc = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"
# Find commits by commit message
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
# Remove branches that have already been merged with current branch
bye = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
[apply]
whitespace = fix
[color]
ui = true
[commit]
gpgSign = true
[core]
editor = nvim
pager = delta --dark
excludesFile = ~/.config/gitignore.global
ignorecase = false
[credential]
helper = cache --timeout 3600
[diff]
colorMoved = default
[fetch]
prune = true
output = compact
[help]
autocorrect = 1
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only --highlight-removed
[log]
decorate = short
[merge]
conflictstyle = diff3
log = true
[protocol]
version = 2
[pull]
rebase = true
[push]
autoSetupRemote = true
autoSetupRemove = true
[rebase]
autoStash = true
updateRefs = true
[include]
path = ~/.config/delta/delta.gitconfig
[delta]
features = mantis-shrimp
[rerere]
enabled = true
[column]
ui = auto
[branch]
sort = -committerdate
[gpg]
format = ssh