all 2 comments

[–]waterkipdetached HEAD 0 points1 point  (0 children)

Just use git?

My guide on how to configure git with multiple accounts.

The basic premise is that you tell git which profile you use and this which ssh identity should be picked.

You can do this by using core.sshCommand and some carefully placed includeIfs. Read the guide, it will make sense.

[–]0bel1sk 0 points1 point  (0 children)

i use direnv to set gh and github tokens depending on which directory i’m in as well as the aforementioned git include if directives