Ansible

Infrastructure, Ansible, AWS, Home Lab

Verifying Your GitHub Commits with GPG or SSH

If you’ve been following along with the previous posts on managing multiple Git identities and multiple SSH keys, this next step adds a nice layer of polish — verified commits. You’ve probably noticed some commits on GitHub have a little “Verified” badge next to them. That badge tells others (and your future self) that GitHub has confirmed the commit really came from you — not someone impersonating your name and email. Let’s walk through how to set up commit signing for your personal and work
Andrew Townsend
Andrew Townsend
3 min read
Infrastructure, Ansible, AWS, Home Lab

Managing Multiple Git SSH Keys by Directory

In the last post, we configured Git to automatically use different user names and emails depending on the project directory. That solved one half of the problem. But if you use multiple Git accounts — say, one for work, one for personal projects — you’ll also need to make sure Git connects using the right SSH key for each. Let’s fix that next. The Problem By default, Git uses your system-wide SSH key (typically ~/.ssh/id_rsa or ~/.ssh/id_ed25519). If both your personal and work GitHub accou
Andrew Townsend
Andrew Townsend
2 min read
Infrastructure, Ansible, AWS, Home Lab

Managing Multiple Git Authors by Directory

If you contribute to both personal and work repositories, you’ve probably run into this: You commit to a personal project — and realise your work email is all over it. Or worse, you commit to a company repo using your personal identity. Git only tracks one author configuration per system by default, but with a little setup, you can make Git automatically choose the right name and email based on the directory you’re working in. Let’s walk through how to do it cleanly. 🧩 The Problem By def
Andrew Townsend
Andrew Townsend
3 min read