-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig
More file actions
121 lines (94 loc) · 1.79 KB
/
dot_gitconfig
File metadata and controls
121 lines (94 loc) · 1.79 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[user]
name = Rayhan Noufal Arayilakath
email = me@rayhanadev.com
signingKey = 00718E3114FEA5B1
[core]
editor = hx
pager =
autocrlf = input
excludesFile = ~/.config/git/ignore
[init]
defaultBranch = main
[color]
ui = auto
[pull]
rebase = true
[push]
autoSetupRemote = true
default = simple
followTags = true
[fetch]
prune = true
[merge]
conflictStyle = zdiff3
[rebase]
autoStash = true
updateRefs = true
[diff]
algorithm = histogram
renames = true
tool = critique
[difftool "critique"]
cmd = critique difftool "$LOCAL" "$REMOTE"
[status]
showStash = true
[log]
date = relative
follow = true
[commit]
gpgSign = true
[tag]
gpgSign = true
sort = -version:refname
[credential]
helper = osxkeychain
[rerere]
enabled = true
autoUpdate = true
[branch]
sort = -committerdate
[alias]
# shortcuts
co = checkout
br = branch
ci = commit
st = status
sw = switch
cp = cherry-pick
# staging
unstage = reset HEAD --
discard = checkout --
# log
last = log -1 HEAD
lg = log --oneline --graph --decorate --all
ll = log --oneline --graph --decorate -20
hist = log --pretty=format:'%C(auto)%h %ad | %s%d [%an]' --date=short
# diff
staged = diff --cached
dt = difftool
# rebase
ri = rebase --interactive
rc = rebase --continue
ra = rebase --abort
# stash
ss = stash push
sp = stash pop
sl = stash list
sd = stash drop
# worktree
wt = worktree
wta = worktree add
wtl = worktree list
wtr = worktree remove
# push/pull
pf = push --force-with-lease
pl = pull
# branch management
brd = branch -d
brdf = branch -D
recent = branch --sort=-committerdate --format='%(committerdate:relative)%09%(refname:short)'
# misc
amend = commit --amend --no-edit
undo = reset --soft HEAD~1
wip = !git add -A && git commit -m 'WIP'
aliases = config --get-regexp ^alias\\.