06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · HackerNoon · 108d · 8 min read

A Three-Layer Setup for Multiple GitHub Accounts on One Machine

A three-layer setup routes Git commit identity, HTTPS push credentials, and the GitHub CLI account by repository folder, including in headless shells. TL;DR.Two GitHub accounts on one machine, routed entirely by which folder a repo lives in. Three problems, three fixes:All three route by folder, so nothing depends on remembering to switch accounts. It’s HTTPS with gh-managed tokens throughout and no SSH keys. The steps are below, and the reason for dropping SSH is at the end. What you need first A Mac Two GitHub accounts git 2.13 or newer, for the includeIf directive The gh CLI installed, with both accounts logged in (gh auth login once per account; the tokens live in the macOS keyring) The

…

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 536 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks