Tooling

Setup git with multiple authors automatically

2 min read

I’m pretty sure, I’m not the only one working in multiple git contexts with multiple authors. Maybe you also find yourself in situations where you need to juggle with multiple author configs, including:

  • Work
  • Private
  • Anonymous
  • and others…

I found myself multiple times already in situations where I’ve created a commit with my author set from work and vice versa. After countless errors, I finally found a way to manage this issue at my scale and I’m pretty happy with the solution.

#git #tooling

SSH and GPG Relay inside WSL2 with systemd boot

2 min read

In this post I will explain how I’m using the Windows OpenSSH and Gpg4Win agents inside WSL2 with systemd. This post is not explained in detail and serves mainly as a reference manual for future setups.

There are also other tools available in the wild, that help with the process, like:

Download npiperelay and wsl-ssh-pageant. Place both in a suitable directory on the windows side. I created C:\tools for that purpose. Configure wsl-ssh-pageant for autostart. I chose a simple shortcut in the startup directory for that. It should be started like this: wsl-ssh-pageant-amd64-gui.exe -force -systray -verbose -wsl C:\tools\wsl-ssh-pageant\wsl-ssh-agent.sock -winssh winssh-pageant

#linux #wsl #tooling