-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathgitconfig
More file actions
59 lines (55 loc) · 1.26 KB
/
gitconfig
File metadata and controls
59 lines (55 loc) · 1.26 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
[user]
name = John Nunemaker
email = nunemaker@gmail.com
signingkey = 2DB63FE78C8E37AC
[github]
user = jnunemaker
[push]
default = simple
autoSetupRemote = true
[credential]
helper = osxkeychain
[alias]
co = checkout
ci = commit
st = status
br = branch
cp = cherry-pick
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
open = !open `git config remote.origin.url`
# Amend the last commit
amend = commit --amend -C HEAD
# Undo the last commit, preserving the changes
undo = reset --soft HE
# Show number of commits by each contributor
count = shortlog -sn
# List Recent Branches
recent = for-each-ref --count=5 --sort=-committerdate --format='%(refname:short)' refs/heads/
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[core]
pager = delta
[fetch]
# Always prune remote branches when fetching
prune = true
[help]
autocorrect = 1
[branch]
autosetuprebase = always
autosetupmerge = true
[pull]
rebase = false
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[init]
defaultBranch = main
[delta]
side-by-side = true