-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
40 lines (40 loc) · 1.15 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
[init]
templatedir = ~/.git_template
defaultBranch = canon
[push]
default = current
[color]
ui = auto
[alias]
aa = add --all
ap = add --patch
ci = commit -v
co = checkout
pf = push --force-with-lease
st = status
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
cleanup = branch --merged | grep -v master | grep -v dev | xargs -n 1 git branch -d
[core]
excludesfile = ~/.gitignore
autocrlf = input
[merge]
ff = only
[commit]
template = ~/.gitmessage
gpgsign = true
[fetch]
prune = true
[rebase]
autosquash = true
[include]
path = ~/.gitconfig.local
[user]
name = Luke Rollans
email = [email protected]
signingkey = ~/.ssh/id_rsa
[pager]
diff = diff-so-fancy | less --tabs=1,5 -RFX
show = diff-so-fancy | less --tabs=1,5 -RFX
[gpg]
format = ssh