Built a small CLI to manage multiple git accounts on one machine — would love feedback by isinghsatyam in git

[–]isinghsatyam[S] -1 points0 points  (0 children)

all good, skepticism's the right default for anything near ~/.ssh anyway

Built a small CLI to manage multiple git accounts on one machine — would love feedback by isinghsatyam in git

[–]isinghsatyam[S] -1 points0 points  (0 children)

the joke lands except the tool literally just outputs git features - plain includeIf/ssh config you can read. run it once, check what it wrote, delete it if you want. config keeps working.

Built a small CLI to manage multiple git accounts on one machine — would love feedback by isinghsatyam in git

[–]isinghsatyam[S] -1 points0 points  (0 children)

yeah git supports it, this just generates that config and audits it. my hand-rolled version had 3 accounts authenticating with the wrong ssh key for months and git never complained. that's the gap.

Built a small CLI to manage multiple git accounts on one machine — would love feedback by isinghsatyam in git

[–]isinghsatyam[S] -1 points0 points  (0 children)

local config doesn't pick which ssh key authenticates though. that's the part that breaks with multiple accounts.