Skip to content

A simple and efficient tool to easily manage multiple Git accounts per project

License

Notifications You must be signed in to change notification settings

FlorianHegele/git-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-switch

A simple and efficient tool to easily manage multiple Git accounts per project.

Description

git-switch allows you to quickly switch between different Git accounts (username, email, GPG key) based on your projects. Ideal for developers who work with multiple Git accounts (personal, professional, open-source, etc.) and want to avoid configuration errors.

Features

  • Management of multiple Git profiles (name, email, GPG key)
  • Per-project configuration
  • Easy installation and uninstallation

Installation

After cloning this repository, simply run:

chmod +x ./install.sh
sudo ./install.sh

Usage Examples

# Add a new account
git-switch -a personal

# List all available accounts
git-switch -l

# Use a specific account for the current project
git-switch -u professional

# Display help
git-switch -h

Configuration

Accounts are stored in ~/.config/git-switch/account/*.conf

Checking the active configuration

To check the active Git configuration in a project:

git config user.name
git config user.email
git config user.signingkey

Uninstallation

To uninstall git-switch from the system:

chmod +x ./uninstall.sh
sudo ./uninstall.sh

About

A simple and efficient tool to easily manage multiple Git accounts per project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages