-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgitconfig
More file actions
83 lines (83 loc) · 2.04 KB
/
Copy pathgitconfig
File metadata and controls
83 lines (83 loc) · 2.04 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
[user]
name = Blake Williams
email = blake@blakewilliams.me
[github]
user = BlakeWilliams
[init]
templatedir = ~/.git_template
defaultBranch = main
[color]
ui = true
[format]
pretty = oneline
[core]
excludesfile = ~/.excludes
whitespace = trailing-space,space-before-tab
[advice]
pushNonFastForward = false
statusHints = false
[commit]
template = ~/.gitmessage
gpgsign = false
verbose = true
[fetch]
prune = true
pruneTags = true
[push]
default = current
autoSetupRemote = true
followTags = true
[pull]
rebase = true
[merge]
ff = only
[alias]
aa = add --all
ap = !git add --all --intent-to-add && git add -p
c = commit
ca = commit --amend
# commit filter
cf = "!git log --color=always | fzf --ansi --reverse --preview 'git deets {1} --color=always' --delimiter=' ' --accept-nth=1"
ci = !gh pr checks
co = checkout
conflicts = diff --name-only --diff-filter=U
ctags = "!sh -c '[ -f .git/hooks/ctags ] || git init; .git/hooks/ctags' git-ctags"
d = diff
deets = show --pretty=full
ds = diff --staged
fuckit = !sh -c 'git add --all && git reset --hard'
longer = log --pretty='%C(yellow)%h%Creset - %s%n%C(green)%an%Creset commited %ar%n'
p = "![ $(git config \"branch.$(git symbolic-ref --short HEAD).merge\") = '' ] && git push -u || git push"
pf = p --force-with-lease
retro = log --since='7 days ago' --author=\"Blake Williams\"
standup = log --since=yesterday --author=\"Blake Williams\"
up = !git fetch origin && git rebase -i origin/main
squash = "!f() { git reset --soft $(git merge-base HEAD \"$@\") && git commit; }; f"
[status]
branch = 1
short = 1
[diff]
algorithm = histogram
renames = true
[credential]
helper = store
[log]
decorate = short
abbrevCommit = true
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[color "diff"]
meta = yellow
[branch]
sort = -committerdate
[tag]
sort = version:refname
[rerere]
enabled = true
autoupdate = true
[rebase]
autoStash = true
updateRefs = true