# gitrc

> Create different git profiles and switch between them

Latest version **1.0.0** (published 2016-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install gitrc
pnpm add gitrc
yarn add gitrc
bun add gitrc
```

Provides the command `gitrc`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-03-03 |
| First published | 2016-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jessica Kelly |
| Maintainers | thatjessicakelly |

## Links

- npm: https://www.npmjs.com/package/gitrc
- Repository: https://github.com/thatjessicakelly/gitrc
- Issues: https://github.com/thatjessicakelly/gitrc/issues
- npm.io page: https://npm.io/package/gitrc

## Dependencies (3)

- [meow](https://npm.io/package/meow.md) ^3.7.0
- [user-home](https://npm.io/package/user-home.md) ^2.0.0
- [path-exists](https://npm.io/package/path-exists.md) ^2.1.0

## Recent versions

- 1.0.0 (latest) — 2016-03-03

## README

# gitrc

Create different git profiles and switch between them

## Usage

First install `gitrc`:

```sh
$ npm install -g gitrc
```

Then create a `~/.gitrcs` folder and add some profiles.

```sh
$ ls -1 ~/.gitrcs
personal
work
```

Profiles are actually just shell scripts that can have anything in them:

```sh
$ cat ~/.gitrcs/personal
git config --global user.name "Jessica Kelly"
git config --global user.email "thatjessicakelly@gmail.com"
```

```sh
$ cat ~/.gitrcs/work
git config --global user.name "Jessica Kelly"
git config --global user.email "jkelly@enterprise.biz"
```

You can list what gitrcs you have by running

```sh
$ gitrc
personal
work
```

Then you can activate one by running:

```sh
$ gitrc work
```

```sh
$ gitrc
personal
work (active)
$ git config --global --get user.email
jkelly@enterprise.biz
```

---
_Source: https://npm.io/package/gitrc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
