Skip to content

Fix credential helper to be portable across environments - #16

Merged
atkei merged 1 commit into
mainfrom
update-gitconfig-credential-helper
Mar 17, 2026
Merged

Fix credential helper to be portable across environments#16
atkei merged 1 commit into
mainfrom
update-gitconfig-credential-helper

Conversation

@atkei

@atkei atkei commented Mar 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reset credential helper chain with empty helper = "" to override system-level osxkeychain (Xcode)
  • Use PATH-based gh command instead of absolute path (/opt/homebrew/bin/gh) for cross-platform compatibility
  • Add gist.github.com credential config

Background

gh auth setup-git writes absolute paths to .gitconfig, which breaks when sharing dotfiles across macOS/Ubuntu. This change uses the portable "!gh auth git-credential" form instead, and gh auth switch alone handles account switching without needing gh auth setup-git each time.

Test plan

  • Verified gh auth switch correctly switches git credentials on macOS

🤖 Generated with Claude Code

Reset credential helper chain with empty helper to override
system-level osxkeychain, and use PATH-based gh command
instead of absolute path for cross-platform compatibility.
Also add gist.github.com credential config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@atkei
atkei merged commit 0972585 into main Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant