/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

themythicalengineer.com
| | ianduffy.ie

Learn how to seamlessly switch between work and personal GitHub accounts using SSH, GPG, and SSH agent configurations. This guide walks you through setting up 1Password for secure key management, configuring Git for different identities, and automating the process to enhance your development workflow.
1.5 parsecs

Travel
| |
| | willhaley.com

This article outlines a process for loading a custom git configuration when in a specific directory tree. This sets up a sort of local git configuration per-directory without needing to alter the global .gitconfig file or any other global git or ssh configurations. See here an example .envrc file. This file would be used by direnv to set per-directory env variables with the direnv shell helper. PATH=$PATH:$(pwd)/bin export GIT_AUTHOR_EMAIL="Email to use for this organization" export GIT_AUTHOR_NAME="Name to use for this organization" export GIT_COMMITTER_EMAIL="Email to use for this organization" export GIT_COMMITTER_NAME="Name to use for this organization" export GIT_SSH="my-special-ssh-command-for-this-organization.sh" Setting GIT_SSH allows for customizin...
3.7 parsecs

Travel
| |
| | www.integralist.co.uk

Introduction The Problem? The Solution Creating a new Key SSH Config Optional Shell Function Alternatives? Another Alternative Introduction I recently had an issue with my GitHub set-up which has since prompted me to write this post. The issue I had was dealing with multiple GitHub accounts via SSH on a single laptop. So I have a GitHub account under the username Integralist. This is a personal account, and up until recently I was also using it to access my work's private repos (BBC and BBC-News).
2.2 parsecs

Travel
| |
| | purefun.dev

If you install a new machine and forget to set your email and commiter name, then your Git history will be a tad ugly, with your machine name involved instead of a real email. So how do you set the default? Like this: git config -global user.name "Alice E" git config -global user.email "alice@example.org" Override per repo Ideally, do it before you start committing things. But what if you want different committer names and emails depending on the context?
17.2 parsecs

Travel
|