Apply work identity to HTTPS work-org remotes - #18
Open
hadees wants to merge 2 commits into
Open
Conversation
The includeIf hooks only matched the github-icaevan SSH alias, but work repos cloned over HTTPS (icanalytica standardizes on HTTPS remotes) fell through to the personal identity — wrong email and signing key on commits. Match https://github.com/icanalytica/** and icarichie/** too, same as the credential-routing section below already does. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Credentials stay in 1Password; ~/.config/namecheap/env holds only op:// secret references, resolved per-invocation by op run. Ephemeral machines skip the file (no 1Password there). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
includeIfhooks indot_gitconfig.local.tmplonly matched thegithub-icaevan:SSH alias, but work repos cloned over HTTPS (icanalytica standardizes on HTTPS remotes) fell through to the personal identity — commits landed with the wrong email and signing key.What
Add two more
includeIf "hasconfig:remote.*.url:..."rules matchinghttps://github.com/icanalytica/**andhttps://github.com/icarichie/**, mirroring the org list the credential-routing section below already pins toicaevan. Requires git 2.36+ like the existing rules.Already applied live on this machine and verified: an HTTPS icanalytica clone now resolves
user.emailto the work address,github.usertoicaevan, and the icaevan signing key.chezmoi diffshows source and target in sync for this file.🤖 Generated with Claude Code