-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
58 lines (48 loc) · 1.78 KB
/
.gitconfig
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
# based on https://gist.github.com/scottnonnenberg/fefa3f65fdb3715d25882f3023b31c29
[user]
email = [email protected]
name = jwfwessels
[alias]
prune = fetch --prune
# Because I constantly forget how to do this
# https://git-scm.com/docs/git-fetch#git-fetch--p
undo = reset --soft HEAD^
# Not quite as common as an amend, but still common
# https://git-scm.com/docs/git-reset#git-reset-emgitresetemltmodegtltcommitgt
stash-all = stash save --include-untracked
# We wanna grab those pesky un-added files!
# https://git-scm.com/docs/git-stash
glog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
# No need for a GUI - a nice, colorful, graphical representation
# https://git-scm.com/docs/git-log
# via https://medium.com/@payload.dd/thanks-for-the-git-st-i-will-use-this-4da5839a21a4
[push]
default = simple
# "push the current branch back to the branch whose changes are usually integrated into the current branch"
# "refuse to push if the upstream branch’s name is different from the local one"
# https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushdefault
followTags = true
default = current
autoSetupRemote = true
# Because I get sick of telling git to do it manually
# https://git-scm.com/docs/git-config#Documentation/git-config.txt-pushfollowTags
[core]
editor = vim
excludesfile = ~/.gitignore_global
# [crendential]
# helper = osxkeychain
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[pull]
rebase = true
[rerere]
enabled = true
[url "[email protected]:framer"]
insteadOf = https://github.com/framer
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[init]
defaultBranch = main