-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
60 lines (60 loc) · 1.46 KB
/
gitconfig
File metadata and controls
60 lines (60 loc) · 1.46 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
[user]
name = Lachlan Cooper
email = lachlancooper@gmail.com
[includeIf "gitdir:~/work/"]
path = ~/work/.gitconfig
[alias]
amend = commit --amend --date=now
cached = diff --cached
co = checkout
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%aN>%Creset' --abbrev-commit --
patch = !git --no-pager diff --no-color
unstage = restore --staged --
vimdiff = difftool -y -t vimdiff
staged = diff --staged
who = !git shortlog -sn
prunelocal = !sh -c \"git checkout -q master && git fetch -q --prune && git branch -vv | grep ': gone]' | cut -d' ' -f3 | xargs git branch -D\"
[commit]
verbose = true
[tag]
forceSignAnnotated = true
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
excludesfile = ~/.gitignore_global
[color]
ui = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 227
frag = magenta bold
commit = 227 bold
old = red bold
new = green bold
whitespace = red reverse
[diff-so-fancy]
stripLeadingSymbols = false
markEmptyLines = false
[push]
default = current
autoSetupRemote = true
[fetch]
prune = true
[url "git@github.com:"]
insteadOf = https://github.com/
[pull]
rebase = true
[rebase]
autoStash = true
[init]
defaultBranch = main
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[branch]
sort = -committerdate