-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.gitconfig
91 lines (71 loc) · 1.98 KB
/
dot.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
[user]
name = Ashwin Shenai
email = [email protected]
signingkey = 9514915A8847ED8E
[credential "https://github.com"]
username = ashwin2802
[url "[email protected]:"]
insteadOf = sh:
[url "[email protected]:ashwin2802/"]
insteadOf = shh:
[url "https://github.com/"]
insteadOf = gh:
[url "https://github.com/ashwin2802/"]
insteadOf = h:
[color]
ui=true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = red
[alias]
amend = !git log -n 1 --pretty=tformat:%s%n%n%b | git commit -F - --amend
br = branch -av
brdel = branch -D
export = archive -o latest.tar.gz -9 --prefix=latest/
brname = !git branch | grep "^*" | awk '{print $2}'
unstage = reset HEAD --
log = !git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
shas = "!f() { git log $* | grep '^commit ' | cut -f 2 -d ' '; }; f"
rem = !git ls-files -z --deleted | xargs -0 git rm
tags = tag -l
here = !git init && git add . && git commit -m \"Inital commit\"
subup = submodule update --init
trim = !git reflog expire --expire=now --all && git gc --prune=now
stat = status
do = commit
hist = log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
[diff]
tool = vimdiff
[difftool]
prompt = false
[sequence]
editor=interactive-rebase-tool
[core]
editor = vim
whitespace = fix, -indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[web]
browser = firefox
[submodule]
recurse=true
[help]
autocorrect = 1
[clangFormat]
binary = clang-format-6.0
[commit]
gpgsign = true
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f