-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitconfig
More file actions
117 lines (117 loc) · 2.67 KB
/
Copy path.gitconfig
File metadata and controls
117 lines (117 loc) · 2.67 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[include]
# 環境ごとに違う設定はここに定義する
path = ~/.gitconfig.local
[user]
name = sumik5
email = sumik@catenas.co.jp
# email =
# name =
[github]
user = shivase
[ghq] # https://github.com/motemen/ghq
root = ~/repo
[color]
ui = auto
[core]
autocrlf = false
editor = vim
precomposeunicode = true
excludesfile = ~/.gitignore
ignorecase = false
quotepath = false
[push]
default = current
[branch]
autosetuprebase = always
sort = -committerdate
[merge]
ff = false
conflictstyle = diff3
[pull]
rebase = true
[init]
defaultBranch = main
[alias]
# https://github.com/gggritso/dotfiles/blob/master/gitconfig.symlink
st = status
unstage = reset -q HEAD --
discard = checkout --
nevermind = !git reset --hard HEAD && git clean -d -f
uncommit = reset --mixed HEAD~
save = commit -m
resave = commit --amend
invert = revert
last = log -1 HEAD --format=format:"%Cred%H"
summary = status -u -s
graph = log --graph -10 --branches --remotes --tags --format=format:'%Cgreen%h %Creset• %<(75,trunc)%s (%cN, %ar) %Cred%d' --date-order
history = log -10 --format=format:'%Cgreen%h %Creset• %s (%cN, %ar)'
branchout = checkout -b
tags = tag
branches = branch -a
stashes = stash list
remotes = remote -v
prestage = diff -w --word-diff=color
precommit = diff --cached -w --word-diff=color --word-diff-regex='[^[:space:]<>]+'
move = mv
remove = rm
unmerged = branch --no-merged
unstash = stash pop
what = show -w
untrack = rm -r --cached
rewrite = rebase -i
amend = commit --amend
back = checkout "-"
contributors = shortlog -s -n
filetrail = git log --follow -p -w
mergetrail = log --ancestry-path --merges
unmerged = diff --name-only --diff-filter=U
staash = stash --all
bb = !$HOME/dotfiles/bin/better-git-branch.sh
pushf = push --force-with-lease
[credential]
helper = osxkeychain
#helper = cache --timeout=216000
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[homebrew]
analyticsdisabled = true
[mailmap]
file = ~/.mailmap
[blame]
date = relative
[homebrew]
analyticsdisabled = true
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[homebrew]
analyticsdisabled = true
[diff]
tool = vimdiff
[difftool]
prompt = false
[column]
ui = auto
[rerere]
enabled = true
[fetch]
writeCommitGraph = true
[http]
postbuffer = 4M
[coderabbit]
machineId = cli/82aa3c5ac85a4059a7fa6f6fa88f5732
[commit]
gpgsign = true
[tag]
gpgsign = true
[gpg]
format = openpgp