-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitconfig
33 lines (33 loc) · 962 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
31
32
33
[user]
name = Mikkel Laursen
email = mlaursen03@gmail.com
[core]
autocrlf = input
[push]
default = upstream
[merge]
keepBackup = 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
[includeIf "hasconfig:remote.*.url:git@github.com:mlaursen/**"]
path = ~/dotfiles/.gitconfig-mlaursen
[includeIf "hasconfig:remote.*.url:https://github.com/mlaursen/**"]
path = ~/dotfiles/.gitconfig-mlaursen
[includeIf "hasconfig:remote.*.url:git@gitlab.com:poppulo/**"]
path = ~/dotfiles/.gitconfig-poppulo