-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
30 lines (30 loc) · 936 Bytes
/
.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
[core]
autocrlf = false
excludesFile = ~/.gitignore
hooksPath = ~/.githooks
[user]
name = Joshua Newton
email = [email protected]
[init]
defaultBranch = main
[pull]
rebase = false
ff = only
[merge]
conflictstyle = diff3
[rebase]
autostash = true
[commit]
template = ~/.gitmessage
[push]
autoSetupRemote = true
# src: https://intranet.neuro.polymtl.ca/geek-tips/git-annex.html
[annex]
# save disk space by de-duplicating checked out and annexed copies
thin = true
# prevent attempting to share your local copy of the annex, which is impossible when working in a team
private = true
[url "[email protected]:"]
insteadOf = "https://github.com/"
[alias]
smartlog = log --graph --pretty=format:'commit: %C(bold red)%h%Creset %C(red)[%H]%Creset %C(bold magenta)%d %Creset%ndate: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%nauthor: %C(bold blue)%an%Creset %C(blue)[%ae]%Creset%n%C(cyan)%s%n%Creset'