Per-repo SSH keys for Git with core.sshCommand

If you keep more than one GitHub (or GitLab, or whatever) identity, you usually end up with more than one private key. The usual fixes are Host aliases in ~/.ssh/config, or typing GIT_SSH_COMMAND='ssh -i ~/.ssh/some_key -o IdentitiesOnly=yes' git … before every command. Both work. Neither is what I want when I just opened a random repo in a deep path and want my fingers to do the right thing. Reminder: you can pin the SSH command on a single clone: ...

August 2, 2023 · 1 min · 206 words

Improving Terminal in OSX

Out of the box, using the Terminal in macOS leaves much to be desired. The built-in application can feel inflexible and quite plain, while the default shell, Bash, lacks several handy tools that become indispensable once you’ve experienced them. Let’s explore how to transform your terminal experience into something that’s not just functional but enjoyable. Homebrew: The Missing Package Manager Homebrew is the essential package manager for macOS. It fills a significant gap for developers, allowing you to easily install and manage software packages. ...

August 7, 2020 · 4 min · 654 words