diff options
| author | Brad Clawsie <brad.clawsie@defenseunicorns.com> | 2026-07-31 09:06:37 -0500 |
|---|---|---|
| committer | Brad Clawsie <brad.clawsie@defenseunicorns.com> | 2026-07-31 09:06:37 -0500 |
| commit | 56e6256ff34d2964815e0f26e240cca8af11ac54 (patch) | |
| tree | 71abbe0693d46021d742f2b8705e8d0748ca4315 /git/du-dotgitconfig | |
| parent | af714f383afb800375c49ff72fa68ecbb63965c7 (diff) | |
add du configs
Diffstat (limited to 'git/du-dotgitconfig')
| -rw-r--r-- | git/du-dotgitconfig | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/git/du-dotgitconfig b/git/du-dotgitconfig new file mode 100644 index 0000000..de8b9a8 --- /dev/null +++ b/git/du-dotgitconfig @@ -0,0 +1,76 @@ +[user] + name = Brad Clawsie + email = brad.clawsie@defenseunicorns.com + signingkey = ~/.ssh/id_defenseunicorns.pub + +[core] + pager = delta + editor = nvim + autocrlf = input + +[init] + defaultBranch = master + +[commit] + gpgsign = true + +[gpg] + format = ssh + +[gpg "ssh"] + allowedSignersFile = ~/.ssh/allowed_signers + +[pull] + ff = only + +[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: )" + |
