-
Notifications
You must be signed in to change notification settings - Fork 3
/
gitconfig
40 lines (40 loc) · 1.37 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
[user]
name = Shane Forster
email = [email protected]
signingkey = 3F863A24EA9E0446
[color]
ui = true
[core]
editor = vim
excludesfile = ~/.gitignore
[alias]
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = 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
lg = !"git lg1"
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
count-lines = "! git log --author=\"$1\" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf \"added lines: %s, removed lines: %s, total lines: %s\\n\", add, subs, loc }' #"
[github]
user = shane4ster
[commit]
gpgsign = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[merge]
tool = vimdiff
prompt = false
conflictstyle = diff3
[difftool]
prompt = false
[diff]
tool = vimdiff
[pull]
rebase = true
[includeIf "gitdir:~/repo/github.com/ovotech/"]
path = ~/.gitconfig.ovo
[include]
path = ~/.gitconfig.overrides
[init]
defaultBranch = main