-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
90 lines (76 loc) · 1.95 KB
/
gitconfig
File metadata and controls
90 lines (76 loc) · 1.95 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
[user]
email = josh@jcmorrow.com
name = Josh Morrow
signingkey = 4726FAB3
[alias]
blame = blame -wC
aa = add --all
amend = "!git commit --amend -C HEAD --date=$(date +%Y-%m-%dT%H:%M:%S)"
ap = add --patch
b = branch
bc = !git branch --sort=-committerdate --format='%(refname:short)' | fzf --height 40% --reverse --preview 'git log --oneline -10 {}' | xargs git switch
ci = commit -v
co = checkout
co-pr = !sh -c 'git fetch origin pull/$1/head:pr/$1 && git checkout pr/$1' -
fixup = "!git commit --fixup $(git squash-target)"
l = "!git ll -12"
la = "!git ll --all"
ll = "log --graph --pretty='format:%C(yellow)%h %C(green)%ar %C(cyan)%an %C(red)%d %C(reset)%s'"
lx = "log --graph --pretty='format:%C(yellow)%h %C(green)%ar %C(cyan)%an %C(reset)%s' -12"
lt = "!git ll --simplify-by-decoration"
pf = push --force-with-lease
s = status -sb
sha = "!git rev-list --max-count 1 HEAD | tr -d '\n' | pbcopy"
up = !git fetch origin && git rebase origin/master
[checkout]
defaultRemote=origin
[color]
ui = auto
[commit]
gpgSign = false
[core]
editor=nvim
excludesfile = ~/.gitignore
autocrlf = input
[diff]
tool = kitty
guitool = kitty.gui
[difftool]
prompt = false
trustExitCode = true
[difftool "kitty"]
cmd = kitty +kitten diff $LOCAL $REMOTE
[difftool "kitty.gui"]
cmd = kitty kitty +kitten diff $LOCAL $REMOTE
[fetch]
prune = true
[github]
user = jcmorrow
[gpg]
program = gpg2
[grep]
lineNumber = true
[merge]
conflictstyle = diff3
ff = only
[push]
default = current
[rebase]
autosquash = true
[rerere]
enabled = true
[pull]
ff = only
[init]
defaultBranch = main
[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
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f