-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
73 lines (73 loc) · 1.74 KB
/
gitconfig
File metadata and controls
73 lines (73 loc) · 1.74 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
73
[user]
name = Ben Everly
email = ben.everly@oberd.com
signingkey = /home/beneverly/.ssh/id_ed25519.pub
[github]
user = ben-everly
[alias]
c = commit
ch = checkout
d = diff
st = status
lg = log
bd = branch -d
ss = stash save -u
amend = commit --amend
graph = log --graph --format='%C(red)%h%C(reset) - %C(green)%cd %C(bold blue)%an%C(reset) %C(yellow)%d%C(reset) %s'
discard = checkout -- .
merged = bl --merged
merged-r = bl -r --merged
track = branch --track
standup = lg --all --no-merges -10 --author='ben.everly@oberd.com' --abbrev-commit --oneline --since='1 week ago'
clean-merged = !git-clean-merged
trash = !git-trash
recurse = !git-recurse
review = !git-review
bl = "!f() { \
git branch -l \
--format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset)˘%(color:red)%(objectname:short)%(color:reset)˘%(color:green)(%(committerdate:relative))%(color:reset)˘%(color:bold blue)%(authorname)%(color:reset)˘%(contents:subject)' \
$@ | column -t -s '˘'; \
}; f"
pr = "!f() { gh pr $@; }; f"
issue = "!f() { gh issue $@; }; f"
[core]
editor = nvim
excludesFile = ~/.gitignore
autocrlf = input
pager = 'less'
[color]
ui = always
[format]
pretty = %C(red)%h%C(reset) %C(green)%cd %C(bold blue)%<(15,trunc)%an%C(reset) %C(yellow)%d%C(reset) %s
[branch]
sort = -committerdate
[diff]
tool = vimdiff
[log]
abbrevCommit = true
date = iso
[mergetool "nvim"]
cmd = nvim -f -c \"Gvdiffsplit!\" \"$MERGED\"
[merge]
tool = nvim
[mergetool]
prompt = false
[push]
default = current
[pull]
rebase = true
[mergetool]
keepBackup = false
[status]
short = true
branch = true
[url "git@github.com:"]
insteadOf = "gh:"
[url "git@gist.github.com:"]
insteadOf = "gist:"
[init]
defaultBranch = main
[gpg]
format = ssh
[commit]
gpgsign = true