-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitconfig
31 lines (31 loc) · 1.16 KB
/
.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
[user]
name = Marko Tadic
email = tadija@me.com
[core]
excludesfile = ~/.dotfiles/.gitignore
[init]
defaultBranch = main
[push]
default = simple
[pull]
rebase = false
[diff]
tool = opendiff
[merge]
tool = opendiff
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
[tig "color"]
cursor = black cyan bold
title-blur = white black
title-focus = black white bold
[alias]
merge-to = "!gitMergeTo() { export tmp_branch=`git branch | grep '* ' | tr -d '* '` && git checkout $1 && git merge --no-ff --no-edit $tmp_branch; unset tmp_branch; }; gitMergeTo"
merge-to-ff = "!gitMergeTo() { export tmp_branch=`git branch | grep '* ' | tr -d '* '` && git checkout $1 && git merge --no-edit $tmp_branch; unset tmp_branch; }; gitMergeTo"
squash-to = "!gitSquashTo() { export tmp_branch=`git branch | grep '* ' | tr -d '* '` && git checkout $1 && git merge --squash $tmp_branch && git commit --no-edit; unset tmp_branch; }; gitSquashTo"
rename-tag = "!sh -c 'set -e;git tag $2 $1; git tag -d $1;git push origin :refs/tags/$1;git push --tags' -"
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true