-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig
88 lines (81 loc) · 2.27 KB
/
dot_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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[user]
name = usirin
email = [email protected]
[alias]
st = status --untracked-files
ci = commit
cian = commit --amend --no-edit
co = checkout
cp = cherry-pick
cpc = cherry-pick --continue
cpa = cherry-pick --abort
di = diff
aa = add --all
b = branch -vv
bd = branch -D
logo = log --decorate --oneline
logf = log --graph --oneline
rc = rebase --continue
ra = rebase --abort
ri = rebase --interactive
p = pull --rebase
g = grep --break --heading --line-number
url =! bash -c 'git config --get remote.origin.url | sed -E "s/git@\\(.+\\)\\:\\(.+\\)\\.git$/https:\\\\/\\\\/\\\\1\\\\/\\\\2/g"'
open =! bash -c 'git url | xargs open'
ignore = update-index --assume-unchanged
unignore = update-index --no-assume-unchanged
ignored =! git ls-files -v | grep ^[a-z]
prom = pull --rebase origin master
pom = push origin master
undo = reset HEAD~1
wip =! bash -c 'git add --all && git commit -m wip --no-verify'
change-commits = "!f() { VAR=$1; OLD=$2; NEW=$3; shift 3; git filter-branch --env-filter \"if [[ \\\"$`echo $VAR`\\\" = '$OLD' ]]; then export $VAR='$NEW'; fi\" $@; }; f"
[core]
editor = "NVIM_TUI_ENABLE_TRUE_COLOR=1 nvim"
excludesfile = /Users/ussirin/.gitignore
; pager = diff-so-fancy | less --tabs=4 -RFX
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
; plus-color = "#012800"
; minus-color = "#340001"
syntax-theme = OneHalfDark
[github]
user = usirin
[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
[mergetool]
keepBackup = true
[push]
default = simple
; [commit]
; gpgsign = true
[gpg]
program = /opt/homebrew/bin/gpg
[rebase]
autostash = true
[credential]
helper = store
; helper = !aws codecommit credential-helper $@
; UseHttpPath = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[commit]
gpgsign = false
[init]
defaultBranch = main
; [url "ssh://[email protected]/"]
; insteadOf = https://github.com/
[url "[email protected]:"]
insteadOf = https://github.com/
[checkout]
defaultRemote = origin