1.1.0 • Published 8 years ago

git-switch v1.1.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
8 years ago

git-switch

git-switch is a simple CLI for managing multiple git profiles.

How it works

git-switch stores each git profile in its own directory. Each profile consists of an SSH key pair and a JSON file with git configuration details.

Switching between profiles will update your global git config to use the data in the JSON file -- local git configs will interfere -- and creates a symbolic link back to the profile's SSH key pair. This allows you to switch between multiple profiles without losing your SSH credentials.

Usage

commandpurpose
git switchSwitches profiles or adds a profile if none exist
git switch addAdds a profile
git switch keyCopy's the current profile's SSH key to the clipboard
git switch listLists all available profiles
git switch removeRemoves a profile
git switch resetResets git and SSH settings to the current profile