-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
71 lines (66 loc) · 1.95 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[user]
name = Naoya Yasuda
email = [email protected]
[alias]
select-commit = "!sh -c 'git log --oneline --decorate --color=always \"$@\" | \
fzf-tmux -p --ansi --height 50% --reverse -m \
--bind \"enter:become(git rev-parse {+1}),ctrl-o:execute-silent(gh browse \\$(git rev-parse {1}))\" \
--preview \"git show --color=always {1}\"' ."
lof = "!sh -c 'set -- $(git select-commit \"$@\"); \
git show \"$@\"; for c; do gh browse -n \"$c\"; \
done' ."
bd = "!f() { \
git branch | \
fzf-tmux -p --height 50% --multi --reverse --preview 'git log --color=always --oneline $(echo {} | sed \"s/ //g\")' | \
awk -v arg=\"${@}\" '{ \
if (arg == \"-f\" || arg == \"--force\") { \
system(sprintf(\"git branch -D %s\", $1)) \
} else { \
system(sprintf(\"git branch -d %s\", $1)) \
} \
}'; \
}; f"
tree = "log --graph --all --format=\"%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %C(magenta reverse)%d%Creset %s\""
[core]
excludesfile = ~/.gitignore_global
pager = delta
ignorecase = false
editor = neovim
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
plus-style = "syntax \"#013A00\""
plus-emph-style = "syntax \"#008102\""
line-numbers = true
side-by-side = true
syntax-theme = Monokai Extended
[pager]
branch = cat
[merge]
conflictstyle = zdiff3
[pull]
rebase = false
[ghq]
root = ~/Projects
user = yanskun
[init]
defaultBranch = main
[push]
autoSetupRemote = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = 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
[credential]
helper =
helper = /usr/local/share/gcm-core/git-credential-manager
[credential "https://dev.azure.com"]
useHttpPath = true