summaryrefslogtreecommitdiff
path: root/git/dotgitconfig
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-01-08 16:38:06 -0600
committerBrad Clawsie <brad@b7j0c.org>2026-01-08 16:38:06 -0600
commitafaad05d307129c6a2ab07d99b272078818940d8 (patch)
treed6ca414a8f85136e898868fe78a12a69f930e06b /git/dotgitconfig
parent1856fc62776f02cf7145f52c25bc3ec5c7d51c7a (diff)
cleanup config
Diffstat (limited to 'git/dotgitconfig')
-rw-r--r--git/dotgitconfig89
1 files changed, 59 insertions, 30 deletions
diff --git a/git/dotgitconfig b/git/dotgitconfig
index 03e5874..20aac1d 100644
--- a/git/dotgitconfig
+++ b/git/dotgitconfig
@@ -1,47 +1,76 @@
-[core]
- pager = delta
+[user]
+ name = Brad Clawsie
+ email = brad@b7j0c.org
+ signingkey = ~/.ssh/id_ed25519.pub
-[interactive]
- diffFilter = delta --color-only
+[core]
+ pager = delta
+ editor = nvim
+ autocrlf = input
-[delta]
- navigate = true
+[init]
+ defaultBranch = master
-[merge]
- conflictstyle = diff3
+[commit]
+ gpgsign = true
-[diff]
- colorMoved = default
+[gpg]
+ format = ssh
-[user]
- name = Brad Clawsie
- email = brad@b7j0c.org
- signingkey = ~/.ssh/id_ed25519.pub
+[gpg "ssh"]
+ allowedSignersFile = ~/.ssh/allowed_signers
[pull]
- ff = only
+ ff = only
-[init]
- defaultBranch = master
+[push]
+ autoSetupRemote = true
-[commit]
- gpgsign = true
+[merge]
+ conflictstyle = diff3
-[gpg]
- format = ssh
+[diff]
+ colorMoved = default
-[gpg "ssh"]
- allowedSignersFile = ~/.ssh/allowed_signers
+[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
+ main-view-date-display = no
+ # Refresh the view automatically when the focus returns to tig
+ refresh-mode = auto
[tig "bind"]
- status = C !git commit -S
+ # --- 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
-[alias]
- st = status -sb
- tree = log --oneline --decorate --graph
- undo = reflog show --pretty=format:'%C(auto)%h %C(blue)%gd%C(reset) %C(yellow)%s%C(reset) %C(green)(%cr)%C(reset)' --date=relative
- 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"
+ # --- 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: )"