-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot.gitconfig
More file actions
68 lines (68 loc) · 1.67 KB
/
dot.gitconfig
File metadata and controls
68 lines (68 loc) · 1.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
[user]
name = Kosuke Matsuda
email =
[github]
user = matsuda
token =
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[color]
ui = true
[alias]
co = checkout
ci = commit
st = status
up = pull
a = add
b = branch
c = commit
d = diff
info = config --list
staged = diff --cached
unstaged = diff
both = diff HEAD
oneline = log --pretty=oneline --abbrev-commit
amend = commit --amend
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lol = log --graph --decorate --pretty=oneline --abbrev-commit
### https://www.jessesquires.com/blog/customizing-git-log/
smartlog = log --graph --pretty=format:'commit: %C(bold red)%h%Creset %C(red)<%H>%Creset %C(bold magenta)%d %Creset%ndate: %C(bold yellow)%cd %Creset%C(yellow)%cr%Creset%nauthor: %C(bold blue)%an%Creset %C(blue)<%ae>%Creset%n%C(cyan)%s%n%Creset'
sl = !git smartlog
ri = rebase -i
[apply]
whitespace = nowarn
[core]
excludesfile = ~/.gitignore
editor = emacs
pager = lv -c
[includeIf "gitdir:~/Dev/github/**"]
path = ~/.gitconfig-main
[includeIf "gitdir:~/Dev/github-sub/**"]
path = ~/.gitconfig-sub
[includeIf "gitdir:~/Dev/bitbucket/**"]
path = ~/.gitconfig-main
#[interactive]
# diffFilter = delta --color-only --theme OneHalfDark
[init]
defaultBranch = main
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f