Skip to content

🥷 Command line util for quickly & easily switching git identities

License

Notifications You must be signed in to change notification settings

jamieweavis/gitsu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitsu

🥷 Command line util for quickly & easily switching git identities

build downloads version license

Screenshot

Install

npm install gitsu-cli -g

Usage

Open the gitsu switcher to select a user from your ~/.gitsurc config

gitsu

List users stored in your ~/.gitsurc config

gitsu --list
gitsu -l

Open your ~/.gitsurc config for editing in your default editor

gitsu --edit
gitsu -e

Building

Compiling a production build

npm run build

Running in development mode

npm run dev

Running a production build

npm start

Linking

Link the local package to your global npm modules

npm link

Unlink the local package from your global npm modules

npm unlink gitsu-cli -g

Config

When you run gitsu for the first time, a .gitsurc file is created in your home directory. This file is used to store your git identities.

[
  { "name": "John", "email": "[email protected]" },
  { "name": "John Doe", "email": "[email protected]" },
  { "name": "Johnny", "email": "[email protected]" }
]

Built With

License

This project is licensed under the MIT License - see the LICENSE file for details.