-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.gitconfig
More file actions
44 lines (38 loc) · 1.32 KB
/
.gitconfig
File metadata and controls
44 lines (38 loc) · 1.32 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
[user]
name = Sarah Schulte
email = git@sarah.engineer
[help]
autocorrect = 1
[core]
editor = vim
[alias]
summon = "!summon () { b=$1; git fetch origin +refs/heads/$b:refs/remotes/origin/$b $b:$b; }; summon"
fpush = "push --force-with-lease"
fp = "push --force-with-lease"
pf = "push --force-with-lease"
l = "log --oneline"
s = "status -s"
wopsy = "commit -a --amend --no-edit"
pop = "!git log -1 --pretty=%B | cat | yank; git reset --soft HEAD^"
update = "pull origin main --rebase"
ri = "pull origin main --rebase=interactive"
trim = "!git branch | fzf -m | xargs -r git branch -D"
obliterate = "!git add -A && git stash && git stash drop"
conflicts = "!git ls-files -u | cut -f 2 | sort -u"
edit = "!edit-last-n-commits"
showvim = "!git diff HEAD^..HEAD --name-only | xargs vim"
recent = "!git checkout $(git for-each-ref --count=100 --sort=-committerdate refs/heads/ --format='%(refname:short)' | fzf)"
rehash = "commit --amend --no-edit --reset-author"
surrender = "!surrender"
gud = "!echo no u"
[push]
default = current
[filter "lfs"]
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[init]
defaultBranch = master