Repository navigation
Expand file tree
/
Copy pathgitconfig
More file actions
60 lines (46 loc) · 1.36 KB
/
Copy pathgitconfig
File metadata and controls
60 lines (46 loc) · 1.36 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
[user]
name = Griffin Qiu
email = griffinqiu@gmail.com
[github]
user = griffinqiu
[init]
defaultBranch = main
[core]
editor = nvim -f
excludesfile = ~/.gitignore
pager = less -FRSX
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
autocrlf = input
safecrlf = true
[color]
ui = auto
[diff]
colorMoved = zebra
[fetch]
prune = true
[merge]
ff = only
[pull]
rebase = true
[push]
default = current
# Replaces the former publish/unpublish aliases.
autoSetupRemote = true
[rebase]
autosquash = true
[credential]
helper = osxkeychain
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $BASE $REMOTE $MERGED \
-c '$wincmd w' -c 'wincmd J'
# Branch and PR helpers are intentionally absent: the Oh My Zsh git plugin and
# `gh pr checkout` cover them.
[alias]
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
dsf = "!f() { [ -z \"$GIT_PREFIX\" ] || cd \"$GIT_PREFIX\" && git diff --color \"$@\" | diff-so-fancy | less --tabs=4 -RFX; }; f"
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative