-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.gitconfig
More file actions
38 lines (38 loc) · 901 Bytes
/
.gitconfig
File metadata and controls
38 lines (38 loc) · 901 Bytes
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
[user]
name = Mikkel Laursen
email = mlaursen03@gmail.com
[core]
autocrlf = input
[push]
default = upstream
[merge]
prompt = false
keepBackup = false
tool = nvimdiff
conflictstyle = diff3
[diff]
tool = nvimdiff
guitool = nvimdiff
prompt = false
[alias]
commita = commit --amend --no-edit
ckb = checkout -b
lg = log --name-status --no-merges
push1 = "push -u origin HEAD"
prunemerged = "!sh -c \"git branch --merged | egrep -v '(^\\*|main|master|develop)' | xargs git branch -d\""
pruneremote = "!sh -c \"git remote prune origin\""
pruneall = "!sh -c \"git pull && git prunemerged && git pruneremote\""
[color]
ui = auto
[credential]
helper = osxkeychain
[pull]
rebase = false
[init]
defaultBranch = main
[fetch]
prune = true
[include]
path = ~/.gitconfig-work
[includeIf "hasconfig:remote.*.url:**github.com*mlaursen/**"]
path = ~/.gitconfig-mlaursen