-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
59 lines (58 loc) · 1.61 KB
/
.gitconfig
File metadata and controls
59 lines (58 loc) · 1.61 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
[includeIf "gitdir:/Users/vsb/projects/work/**"]
path = ~/.config/git/work.gitconfig
[credential]
help = osxkeychain
[push]
default = current
autoSetupRemote = true
[core]
editor = nvim --clean -u NONE
excludesfile = /Users/vsb/.global_ignore
pager = delta
[color]
ui = true
[alias]
co = checkout
br = branch -vv
ci = commit
st = status
unstage = reset HEAD --
last = log -1 HEAD
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} -m \"${1:-A new start}\");};f"
staash = stash --all
# Worktree workflow — work on branches, land from main
wt = worktree list
wta = "!f(){ git worktree add -b \"$1\" \"$(git rev-parse --show-toplevel)/../$1\" main; };f"
wtrm = "!f(){ git worktree remove \"$1\"; };f"
land = "!f(){ branch=\"${1:?usage: git land <branch>}\"; [ \"$(git symbolic-ref --short HEAD)\" = main ] || { echo \"error: not on main\" >&2; return 1; }; git rebase main \"$branch\" && git checkout main && git merge --ff-only \"$branch\" && echo \"Landed $branch on main.\"; };f"
gp = push
[http]
postBuffer = 524288000
[github]
user = vsbuffalo
[diff "nb2md"]
textconv = nb2md
[init]
defaultBranch = main
[pull]
rebase = true
[fetch]
prune = true
[rebase]
autosquash = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Vince Buffalo
email = vsbuffalo@gmail.com
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
[merge]
conflictStyle = zdiff3