PitchHut logo
git-identity-switcher
Manage multiple GitHub identities with ease and safety.
Pitch

Git Identity Switcher simplifies the management of multiple GitHub accounts by binding identities per repository. Avoid the risk of pushing code to the wrong account with features like automatic SSH key generation, secure storage, and an interactive interface. Stay organized and work confidently across all your projects.

Description

Manage multiple GitHub identities effortlessly with git-identity-switcher, designed to prevent committing under the wrong identity. This tool allows for safe per-repository identity binding, ensuring that the correct user information is utilized—thereby eliminating mistakes and simplifying workflows.

Core Features

  • Per-Repo Identity Binding: Assign a unique identity to each repository.
  • SSH Key Management: Automatically generate and securely store SSH keys for ease of use.
  • PAT Support: Seamlessly integrate Personal Access Tokens for HTTPS authentication.
  • Secure Storage: Leverage OS keychain services (macOS Keychain, Linux Secret Service) for safeguarding sensitive information.
  • Safety Hooks: Optionally employ pre-push hooks to prevent unbound pushes.
  • Interactive TUI Interface: Use an intuitive text-based UI to manage identities.
  • Fast & Lightweight: Operate with a single binary that has no additional dependencies.

Usage Examples

To utilize git-identity-switcher, follow this workflow:

  1. Add an Identity:
    git-identity-switcher add identity
    
  2. List Existing Identities:
    git-identity-switcher list identities
    
  3. Bind a Repository to an Identity:
    cd /path/to/repo
    git-identity-switcher bind work
    
  4. Check Current Identity Status:
    git-identity-switcher status
    
  5. Unbind a Repository:
    git-identity-switcher unbind
    

Why Choose Git-Identity-Switcher?

Managing multiple GitHub accounts can often lead to confusion and errors, such as:

  • Accidentally pushing to the incorrect account.
  • Incorrect commit author details.
  • Conflicts within SSH configurations.

git-identity-switcher addresses these issues directly by managing identities per repository, allowing developers to focus on their work without worrying about their configuration.

Additional Resources

For a live demonstration, view the YouTube demo showcasing git-identity-switcher in action.

0 comments

No comments yet.

Sign in to be the first to comment.