Skip to main content

Git, identity, and worktrees

This section is three related systems, not one blob:

SystemWhat it ownsPage
Git defaultsGlobal git behavior, conditional includes, aliases, signing configGit config
Identity and keys1Password SSH agent, public-key selectors, work/personal switchingIdentity and keys
Worktrees,w, ,gh-worktree, branch/issue metadata, tmux session namingWorktrees

The systems connect at runtime: Git chooses identity by repo path, 1Password holds the private keys, worktree metadata helps pickers and helper commands resolve PRs/issues, and tmux gives each worktree a stable session.

Quick checks

git config --show-origin --get user.email
git config --show-origin --get core.sshCommand
echo "$SSH_AUTH_SOCK"
,w doctor