plzhans @plzhans

A blog documenting the troubleshooting behind things I've built.

GitHub LinkedIn code mail rss

Categories
Tags

Git

Encrypting .env Files with GPG for Safe Commits
Encrypting .env Files with GPG for Safe Commits A guide to encrypting .env files with GPG to prevent secret exposure when you need to commit them to Git. Covers everything from .gitignore handling to gpg encrypt/decrypt commands and setting a …
Git Feb 16, 2026
Signing Git Commits with GPG
Signing Git Commits with GPG Learn how to apply GPG signatures to Git commits and earn the Verified badge - from installing GnuPG and generating or exporting keys to enabling automatic commit signing, verifying locally, …
Git Feb 16, 2026
Setting up multiple Git accounts ssh config alias vs gitconfig includeIf
Setting up multiple Git accounts ssh config alias vs gitconfig includeIf This guide explains how to route SSH keys with ~/.ssh/config aliases and how to split commit author settings per folder with ~/.gitconfig includeIf in a multi-account Git setup. Use it to reduce …
Git May 15, 2025
Accessing Git remotes over SSH: from key generation to registration
Accessing Git remotes over SSH: from key generation to registration A complete walkthrough for connecting to Git remotes via SSH. Compare HTTPS vs SSH, generate Ed25519 keys, set proper chmod permissions, register the public key on GitHub/GitLab, and verify with ssh …
Git Feb 16, 2025
Git Deleted Branch Recovery: Bringing It Back with reflog and fsck
Git Deleted Branch Recovery: Bringing It Back with reflog and fsck A step-by-step guide to finding and recovering a deleted Git branch using reflog. Also covers how to find dangling commits with git fsck --lost-found when reflog has expired and has no record, along …
Git Jan 9, 2025
How to fix missing TortoiseGit icon overlays on Windows
How to fix missing TortoiseGit icon overlays on Windows When Windows Explorer hides TortoiseGit status icons, check the ShellIconOverlayIdentifiers limit and priority. Clean up the registry and restart Explorer to bring the overlays back instantly.
Git Feb 27, 2021
Fixing TortoiseGit Authentication Errors: How to Clear Saved Authentication Data
Fixing TortoiseGit Authentication Errors: How to Clear Saved Authentication Data A walkthrough of how to fix repeated Authentication failed errors in TortoiseGit by clearing saved authentication data via Clear in Saved Data. Covers cleaning up the Windows Credential Manager, …
Git Sep 3, 2020
How to migrate SVN to Git: git svn clone
How to migrate SVN to Git: git svn clone A quick guide to using git svn clone when migrating an SVN repository to Git. Learn how to prepare an authors file, what the -s (std-layout) option means, and which install links and verification …
Git Dec 1, 2019
Completely removing leaked secrets from Git history with git filter-repo (force push and resync)
Completely removing leaked secrets from Git history with git filter-repo (force push and resync) Step-by-step procedure for wiping .env files, secrets, and tokens from Git history with git filter-repo. Define filter rules, validate the rewritten history, force-push the new graph, resync every …
Git May 18, 2019