blob: bc116688147388103c2b3d6097352311410e6015 (
plain)
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
|
[user]
name = Brad Clawsie
email = brad@b7j0c.org
signingkey = ~/.ssh/id_ed25519.pub
[core]
pager = delta
editor = emacsclient
autocrlf = input
[init]
defaultBranch = main
[commit]
gpgsign = true
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed_signers
[pull]
ff = only
rebase = true
[push]
autoSetupRemote = true
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
line-numbers = true
[alias]
st = status -sb
tree = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
undo = reset --soft HEAD~1
ghosts = !"git fsck --lost-found | grep commit | cut -d ' ' -f 3 | xargs -n 1 git log -n 1 --pretty=format:'%C(red)%h%C(reset) %s' --color"
last = log -1 HEAD
[tig]
main-view-date-display = no
# Refresh the view automatically when the focus returns to tig
refresh-mode = auto
[tig "bind"]
# --- Status & Committing ---
# 'C' to commit with signature (your original)
status = C !git commit -S
# 'A' to amend the last commit (crucial for quick fixes)
status = A !git commit --amend
# --- Staging & Hunks ---
# While 'u' stages a whole file, '\' in the status/stage view
# will split a hunk if it's too large to stage at once.
# --- Stashing (Global bindings) ---
# 'Z' to stash everything (including untracked files)
generic = Z !git stash -u
# 'P' to pop the most recent stash
generic = P !git stash pop
# 'S' to stash ONLY what you have staged (great for "saving" a specific piece of work)
generic = S !git stash push --staged -m \"%(prompt Stash Name: )\"
# --- Branch Management ---
# 'B' in the 'main' view to quickly create a new branch
main = B !?git checkout -b "%(prompt New branch name: )"
|