A CLI tool to switch between multiple Git profiles/configs. A package to parse and create a .gitconfig file is also available here.
Binary releases are available on the releases page.
Go
go install github.com/thansetan/git-sw@latest
usage: git-sw [options] command
Available commands:
use Select a profile to use.
create Create a new profile.
edit Edit an existing profile in text editor.
delete Delete an existing profile.
list List all available profiles.
Available options:
-g Run the command globally (can only be used with the 'use', 'edit', and 'delete' commands).