-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
54 lines (54 loc) · 1.59 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[user]
name = Eduard-Cristian Boloș
email = eduardb@users.noreply.github.com
signingkey = 842479FDEFC8A69E
[core]
excludesfile = /Users/eduard/.gitignore_global
autocrlf = input
pager = delta
[commit]
gpgsign = true
[alias]
unstash = stash pop
pull = pull --ff-only
cor = !git for-each-ref --sort=-committerdate --format='%(refname:short) (%(committerdate:relative))' refs/heads | fzf --reverse --height 35% --nth 1 | awk '{print $1}' | xargs git checkout
cleanup = !git branch --merged origin/dev | grep -v 'dev$' | xargs git branch -d
sh = "!f() { root=$(pwd)/ && cd ${root%%/.git/*} && git rev-parse && exec \"$@\"; }; f"
[protocol]
version = 2
[gpg]
program = /usr/local/MacGPG2/bin/gpg
[interactive]
diffFilter = delta --color-only --features=interactive
[pull]
ff = only
[init]
defaultBranch = main
[author]
name = Eduard-Cristian Boloș
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[delta]
line-numbers = true
side-by-side = true
plus-style = "syntax #003300"
minus-style = "normal #340001"
[merge]
conflictstyle = diff3
[push]
autoSetupRemote = true
[credential "https://github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/opt/homebrew/bin/gh auth git-credential