A CLI tool based on the Multi-Account Git Setup with SSH and Commit Signing guide, written in Go.
You can download the latest release from the GitHub releases page.
-
Go to the GitHub Releases page.
-
Download the appropriate version for your OS:
- For Windows, download the
.zip
file. - For Linux/macOS, download the
.tar.gz
file.
- For Windows, download the
-
Extract the archive and place the
git-config
binary in a directory included in yourPATH
.
curl -LO https://github.com/nobleknightt/git-config/releases/download/v0.1.0/git-config-linux-amd64.tar.gz
tar -xvf git-config-linux-amd64.tar.gz
sudo mv git-config /usr/local/bin/
- Download the
.zip
file for Windows from the Releases page. - Extract the contents of the
.zip
file. - Move the
git-config.exe
binary to a directory included in yourPATH
, for exampleC:\Program Files\git-config
.
If you have Go installed, you can also install the tool using go install
:
- Run the following command to install
git-config
:
go install github.com/nobleknightt/git-config@latest
-
After installation, the
git-config
binary will be placed in your Go workspace'sbin
directory:- On Linux/macOS, this is usually located at
$HOME/go/bin
. - On Windows, it will be placed in the Go workspace’s
bin
directory, typically located atC:\Users\<YourUser>\go\bin
.
- On Linux/macOS, this is usually located at
Once installed, navigate to the directory where you want to set up your git configuration.
cd /path/to/your/git-config-directory
git-config
This will initiate the setup process, allowing you to configure your multi-account Git setup with SSH keys and commit signing.
- Ensure that you have added the path to the folder containing
git-config.exe
to your system'sPATH
environment variable for easy access from the command line. - You can check if
git-config
is installed correctly by runninggit-config version
from your terminal.