-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_gitconfig.tmpl
62 lines (59 loc) · 1.28 KB
/
dot_gitconfig.tmpl
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
[user]
name = Greggory Rothmeier
email = [email protected]
[core]
quotepath = false
editor = nvim
[branch]
autosetuprebase = always
[web]
browser = open
[rerere]
enabled = true
[grep]
extendRegexp = true
lineNumber = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[github]
user = greggroth
[alias]
dc = diff --cached
aa = add --all :/
pu = push --set-upstream
s = status
st = status
c = commit --verbose
ca = commit --ammend
can = commit --ammend --no-edit
co = checkout
pf = push --force-with-lease
# Fancy logging.
# h = head
# hp = head with patch
# r = recent commits, only current branch
# ra = recent commits, all reachable refs
# l = all commits, only current branch
# la = all commits, all reachable refs
head = !git l -1
h = !git head
hp = "!. ~/bin/.githelpers && show_git_head"
r = !git l -30
ra = !git r --all
l = "!. ~/bin/.githelpers && pretty_git_log"
la = !git l --all
g = grep --break --heading --line-number
ctags = !.git/hooks/ctags
[init]
defaultBranch = main
[push]
autoSetupRemote = true
{{ if .codespaces }}
[url "https://github.com/"]
insteadOf = [email protected]:
[credential]
helper = cache
{{ end }}