GitHotswap
A quick tool to switch between Git users. Perfect for managing multiple identities (like work and personal) without editing .gitconfig manually, mainly made to learn golang.
Install / Use
/learn @artumont/GitHotswapREADME
🔄 GitHotswap
A quick tool to switch between Git user profiles. Perfect for managing multiple identities (like work and personal) without editing .gitconfig manually.
✨ Features
- Easily switch between multiple Git user profiles
- Create, edit, and manage Git user profiles
- List all available profiles
- Quick swap between profiles using menu or hotswap
- Works with local Git repositories
🛠️ Technologies
- Go 1.22+
- Git integration
📋 Prerequisites
- Git installed and configured
- Go 1.22 or later
- Windows environment (currently Windows-only)
📦 Installation
Option 1: Download binary
Download the latest release from the Releases page.
Option 2: Build from source
- Clone the repository:
git clone https://github.com/artumont/GitHotswap
cd GitHotswap
- Build the application:
go build -v -o ./bin/git-hotswap.exe ./cmd/githotswap
Or use the provided build script:
build.cmd
🚀 Usage
Swap
Every operation that is related to the swap of git profiles.
git-hotswap swap # Swap to a profile using the active mode (menu or hotswap)
git-hotswap swap to <profile> # Swap to a specific profile
git-hotswap swap mode <menu|hotswap> # Change the swap mode
Help
Shows help for all commands.
git-hotswap help # Show minimized help information for all commands
git-hotswap help <command> # Show detailed help information for a specific command
Profile
Every operation that is related to the user profile.
git-hotswap profile create <profile> # Creates a new profile
git-hotswap profile edit <profile> # Edits a profile
git-hotswap profile delete <profile> # Deletes a profile
git-hotswap profile list # Lists all profiles
🤝 Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
