Skip to content

This repo contains a simple utility to switch between different Github accounts.

Notifications You must be signed in to change notification settings

spo0ds/Maven-GitAccountManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Account Manager

Overview

The GitHub Account Manager is a command-line tool designed to simplify the management of GitHub accounts for Git configurations. This tool helps you switch between different GitHub accounts seamlessly, set and display Git configurations, and manage a list of GitHub accounts.

Problem Statement

Working with multiple GitHub accounts on a single machine can be challenging due to potential conflicts in Git configurations. This tool addresses this issue by allowing users to switch between GitHub accounts easily, set configurations for specific accounts, and manage a list of accounts associated with their Git environment.

Installation and Usage

Follow these steps to install and use the functionality of the GitHub Account Manager:

Prerequisites

  • Rust Installed: Ensure that you have Rust installed on your machine. If not, you can install Rust.

  • Git Installed: Make sure Git is installed on your system, as this tool relies on Git for configuration operations.

Installation

  • Clone the Repository: Clone the repository containing your Rust GitHub Account Manager.
git clone <repository_url>
cd <repository_directory>
  • To install with cargo
cargo install maven
  • Build the Project: Build the Rust project using Cargo.
cargo build --release
  • Set the manager path variable.
echo 'export PATH=$PATH:$(pwd)/target/release' >> ~/.bashrc
  • Run the Manager: Execute the compiled binary to run the GitHub Account Manager.
maven <subcommand> [options]

Commands and Usage

  • Add a new GitHub account:
maven set <username> <email>
  • Display all accounts:
maven list
  • Switch to a different GitHub account:
maven switch <username>
  • Reset Git configuration for an account or all accounts:
maven reset [<username>]
  • Set Git configuration for a specific account:
maven config --username <username>
  • Show current Git configuration:
maven show

License

This project is licensed under MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)

About

This repo contains a simple utility to switch between different Github accounts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages