/git-profile

command tool to manage git profiles

Primary LanguageJavaScriptMIT LicenseMIT

git-profile

A command cli application to manage multiple git profiles.

Installation

Requires nodejs 10.x or higher.

$> npm i -g git-profile

Usage

Configuring a new profile:

It will promp the profile name, your name and email for the new profile.

$> git-profile new

You can also specify the info as command arguments

$> git-profile new <profile-name> --name="Your cool name" --email="email@usedingithub.com"

Using a profile in your git project:

$> git-profile use --profile=<profile_name>

What does it under the hood

This command line only executes git config user.email <your_email> and git config user.name <your_name> based on the profile for now.

Next possible enhancements

License

Copyright (c) 2020 Aleix Morgadas aleix.mp@protonmail.com

Licensed under MIT License