Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/runebaas/git-identity
A Simple git identity manager
https://github.com/runebaas/git-identity
Last synced: 3 months ago
JSON representation
A Simple git identity manager
- Host: GitHub
- URL: https://github.com/runebaas/git-identity
- Owner: runebaas
- License: mit
- Created: 2018-07-06T18:30:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-15T04:45:03.000Z (almost 3 years ago)
- Last Synced: 2024-07-23T07:12:08.794Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# git-identity
[![npm version](https://badge.fury.io/js/git-identity.svg)](https://badge.fury.io/js/git-identity)
Have you ever had trouble managing git identities? or are you to lazy to switch between work and private identities?
`git-identity` aims to solve this problem by providing a simple and convenient way to switch between profiles.
#### Installation
`npm install -g git-identity`
## Usage
```
USAGEgit-identity [options]
COMMANDS
use use an identity
add add the current identity to .gitidentities
remove remove an identity from .gitidentities
show show info about an identity
ls list all identities
reset reset identity for this project to the global git identity
current show current identity
help Display help for a specific commandGLOBAL OPTIONS
-h, --help Display help
-V, --version Display version
--no-color Disable colors
--quiet Quiet mode - only displays warn and error messages
-v, --verbose Verbose mode - will also output debug messages```
##### Examples
`git identity use work` - use your work profile for your current project.
`git identity use -g private` - use your private profile globally
`git identity add newProfileName` - adds the current profile to the profile list.
#### Shell autocompletion note
git-identity uses [caporal](https://github.com/mattallty/Caporal.js) and therefore benefits from auto completion for bash, zsh and fish, this however needs some [manual setup](https://github.com/mattallty/Caporal.js?#shell-auto-completion).