forked from mlaursen/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
40 lines (40 loc) · 1.12 KB
/
Copy path.gitconfig
File metadata and controls
40 lines (40 loc) · 1.12 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
[user]
name = Mikkel Laursen
email = mlaursen03@gmail.com
[core]
autocrlf = input
[push]
default = upstream
[merge]
keepBackup = false
tool = p4merge
[mergetool]
prompt = false
[mergetool "p4merge"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
trustExitCode = false
keepBackup = false
keepTemporaries = false
[diff]
tool = p4mergetool
[difftool "p4mergetool"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$REMOTE\"" "\"$LOCAL\""
[alias]
commita = commit --amend --no-edit
ckb = checkout -b
lg = log --name-status --no-merges
currbranch = rev-parse --abbrev-ref HEAD
push1 = "!sh -c \"git push --set-upstream origin `git currbranch` $@\""
prunemerged = "!sh -c \"git branch --merged | egrep -v '(^\\*|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
[commit]
template = ~/dotfiles/.gitmessage.txt
[pull]
rebase = false
[init]
defaultBranch = main