-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
93 lines (74 loc) · 2.37 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
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
# vim: noet
[user]
email = [email protected]
name = Alex Pilon
# TODO: Retroactively sign commits
# * http://stackoverflow.com/questions/13043357/git-sign-off-previous-commits/13043757#13043757
# - use git config --get though
signingkey = 3692F8EFAA84B7A6ABB4B1D433560A4A4E517962
[alias]
# Show full graph and patch of all commits
graph = log --graph --all --patch --cc
# Just show the subject and commit hash
log1 = log --oneline
# Show the graph of local commits only
log- = log --graph --oneline
# and also all remotes, branches, etc.
logg = log --graph --all --oneline
# Same, but also show a timestamp and author
logd = log --graph --all --pretty='%C(auto)%h %C(bold blue)[%ai]%C(reset)%C(auto)%d %s %C(dim white)- %an (%G?)'
# Just show the topology.
logt = log --graph --all --oneline --simplify-by-decoration
# Show the entire graph, and also the files touched by each commit.
logn = log --graph --all --oneline --name-status
# Show the minimum merges and non-common commits from <rev1...rev2>
# Use this for visualizing what you're merging.
logm = log --graph --oneline --cherry-pick --first-parent --right-only
# Only show those we want in this graph
# Useful when one wants a log- on some range, like if one just fetched
logp = log --graph --oneline --ancestry-path
# Show $1 type
type = cat-file -t
# Show $1 per se
dump = cat-file -p
# Commits from last pull GROUP BY author
changelog = shortlog @{1}..@
# Commits from last pull ORDER BY date
lastlog = log @{1}..@ --date-order
lastlogg = log @{1}..@ --date-order --graph --oneline
# Already merged commits
merged = branch --merged HEAD
unmerged = branch --no-merged HEAD
ls = ls-tree --name-only HEAD
showw = show --color-words
showws = show --color-words -w
showc = show --color-words='\\S' -w
diffw = diff --color-words
diffws = diff --color-words -w
diffc = diff --color-words='\\S' -w
logw = log --color-words --patch
logws = log --color-words -w --patch
logc = log --color-words='\\S' -w --patch
[commit]
gpgSign = true
[tag]
gpgSign = true
[push]
default = current
[http]
postBuffer = 10485760
[diff]
colorMoved = true
colorMovedWS = ignore-all-space
[diff "nodiff"]
command = true
[pretty]
fixes = Fixes: %h (\"%s\")
[merge]
tool = nvim
[mergetool]
keepBackup = false
[mergetool "nvim"]
cmd = nvim \"$MERGED\" -c \"normal ]nzRzt\"
[init]
defaultBranch = main