Skip to content

Instantly share code, notes, and snippets.

Handling Multiple Github Accounts on MacOS

After many attempts with different approaches, the best solution I've found is to use a combination of the [includeIf] git config option and using ssh.

1. Generate the keys for every identity

> ssh-keygen -t ed25519 -C "your@email.com" -f ~/.ssh/id_<your-identity>
This gist contains the examples for the article "Mastering the Node.js REPL, Part Three".
- https://medium.com/trabe/mastering-the-node-js-repl-part-3-c0374be0d1bf
- https://rcoedo.com/blog/2018/08/27/mastering-the-node-js-repl-part-three
This gist contains the examples for the article "Mastering the Node.js REPL, Part Two".
- https://medium.com/trabe/mastering-the-node-js-repl-part-2-365c52a5203d
- https://rcoedo.com/blog/2018/08/06/mastering-the-node-js-repl-part-two
This gist contains the examples for the article "Debugging Node.js Applications, Part One".
- https://medium.com/trabe/debugging-node-js-applications-part-1-f1cca5084356
- https://rcoedo.com/blog/2018/10/01/debugging-node-js-applications-part-one
This gist contains the examples for the article "Tracing Express Services with zipkin-js".
- https://medium.com/trabe/tracing-express-services-with-zipkin-js-6e5c5680467e
- https://rcoedo.com/blog/2019/07/08/tracing-express-services-with-zipkin-js
This gist contains the examples for the article "Context-Dependent Imports Using CLS and Getters".
- https://medium.com/trabe/context-dependent-imports-using-cls-and-getters-71b97c1baf3c
- https://rcoedo.com/blog/2020/06/15/context-dependent-imports-using-cls-and-getters
This gist contains the examples for the article "Mocking your GraphQL Server is Easier with gql-mock-server".
- https://medium.com/trabe/mocking-your-graphql-server-is-easier-with-gql-mock-server-9d72ce07a657
- https://rcoedo.com/blog/2018/01/22/mocking-your-graphql-server-is-easier-with-gql-mock-server
This gist contains the examples for the article "Detecting Node.js Active Handles with wtfnode".
- https://medium.com/trabe/detecting-node-js-active-handles-with-wtfnode-704e91f2b120
- https://rcoedo.com/blog/2019/08/12/detecting-node-js-active-handles-with-wtfnode
This gist contains the examples for the article "Render Components Elsewhere with react-conduit".
- https://medium.com/trabe/render-components-elsewhere-with-react-conduit-9374680ef21a
- https://rcoedo.com/blog/2018/01/08/render-components-elsewhere-with-react-conduit
This gist contains the examples for the article "AsyncLocalStorage for Easy Context Passing in Node.js".
- https://medium.com/trabe/asynclocalstorage-for-easy-context-passing-in-node-js-e33c84679516
- https://rcoedo.com/blog/2020/05/25/async-local-storage-for-easy-context-passing-in-node-js