Skip to content

A CLI tool to easily switch between users in a repository

License

Notifications You must be signed in to change notification settings

njisip/gitswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitswitch

A CLI tool to easily switch between users in a repository. It allows having a collection of user information and easily set them as local or global user using a key.

Requirements

Installation

  1. Download the latest version from releases.
  2. Place the application on any directory you want.
  3. Add the directory to the PATH user varible. (Guide)

Usage

  1. Run the app on Windows Terminal/Powershell/Command Prompt or any other terminal.
  2. To see available commands, arguments, and options, run:
    gitsw -h
    
    It will show the help documentation.
    Description:
    A tool to easily switch between users in a repository
    
    Usage:
    gitsw [command] [options]
    
    Options:
    --version       Show version information
    -?, -h, --help  Show help and usage information
    
    Commands:
    user  Show user information
    init  Create an empty Git repository or reinitialize an existing one
    

Samples

Show local user

gitsw user

Show global user

gitsw user -g

Show all users

gitsw user -a

Add user

gitsw user add "key" "name" "email"

Add user and set as local user

gitsw user add "key" "name" "email" -s

Switch local user

gitsw user switch "key"

Switch global user

gitsw user switch "key" -g

Initialize repository with user

gitsw init -u "key"

License

This project is under the MIT License.

About

A CLI tool to easily switch between users in a repository

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages