-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitconfig
More file actions
72 lines (70 loc) · 1.8 KB
/
Copy path.gitconfig
File metadata and controls
72 lines (70 loc) · 1.8 KB
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
[user]
name = Danish Prakash
email = contact@danishpraka.sh
signingkey = 66820561C42B7C0C
[core]
editor = /bin/nvim
excludesfile = ~/.gitignore
pager = cat
abbrev = 12
[alias]
open = "!f() { REPO_URL=$(git config remote.origin.url); open ${REPO_URL%%.git}; }; f"
browse = !git open
s = status -s
a = add
acp = !git add . && git commit --amend --no-edit && git push -f origin
ch = checkout
chb = checkout -b
cm = commit --signoff --message
cfp = !git commit --amend --no-edit && git push -f origin
udiff = diff --indent-heuristic --minimal --color-words
diff = diff --no-pager
fr = !git fetch origin && git rebase origin/master
hash = rev-parse --short HEAD # helpful for cherry-picking
l = !git log --date=short -n 15 --no-merges \
--pretty=format:'%C(auto)%h%C(reset) │ %ad │ %C(dim)%<(14,trunc)%an%C(reset) │ %C(bold)%<(60,trunc)%s%C(reset)' \
&& echo
p = push origin
pf = push --force-with-lease
[status]
branch = false
untrackedFiles = all
[branch]
sort = -committerdate
[column]
ui = auto
[tag]
sort = version:refname
[help]
autoCorrect = -1
[push]
default = current
[diff]
tool = vimdiff
colorMoved = true
algorithm = histogram
mnemonicPrefix = true
[commit]
verbose = true # viw more details(diff) while committing changes
gpgsign = true
[http]
cookiefile = ~/.gitcookies
[sendemail]
from = Danish Prakash <contact@danishpraka.sh>
smtpEncryption = tls
smtpServer = smtp.fastmail.com
smtpUser = contact@danishpraka.sh
smtpServerPort = 587
[credential]
helper = libsecret
[format]
signoff = yes
[init]
defaultBranch = main
[pretty]
fixes = Fixes: %h (\"%s\")
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f