# git-chauthor

> A CLI to easily set/change the git author details for a repository

Latest version **0.4.0** (published 2017-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-chauthor
pnpm add git-chauthor
yarn add git-chauthor
bun add git-chauthor
```

Provides the command `chauthor`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2017-08-27 |
| First published | 2017-08-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Daniel Carl Jones |
| Maintainers | dannycjones |
| Keywords | git, author, cli, switch, committer |

## Links

- npm: https://www.npmjs.com/package/git-chauthor
- Repository: https://github.com/dannycjones/git-chauthor
- Homepage: https://github.com/dannycjones/git-chauthor#readme
- Issues: https://github.com/dannycjones/git-chauthor/issues
- npm.io page: https://npm.io/package/git-chauthor

## Dependencies (3)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [inquirer](https://npm.io/package/inquirer.md) ^3.2.2
- [simple-git](https://npm.io/package/simple-git.md) ^1.75.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.4.0 (latest) — 2017-08-27
- 0.3.1 — 2017-08-20
- 0.3.0 — 2017-08-20
- 0.2.0 — 2017-08-18

## README

# git-chauthor

_git-ch(ange)author..._

This is a command line tool that enables you to easily set the author for a project.

## How to use

I recommend installing this package globally so that you can use it in any directory with just `chauthor`.

Follow the interface to create your configuration file. You will need to run it once to create the config file, then again to start adding author details. For more info about the file itself, see the config section.

With config setup, simply run `chauthor` in a git repository. A simple list selector will appear with all the available author details. Upon selecting, the changes will be made immediately.

## Config

The config for this tool (an array of authors) should lie in `~/.gitauthors.json`, and takes the following format:

```
[
    {
        alias (optional string),
        email (string),
        name (string)
    }
]
```

For example, my config file looks something like this:

```json
[
    {
        "email": "danny@danielcarl.info",
        "name": "Daniel Carl Jones"
    },
    {
        "alias": "Uni",
        "email": "not.sharing@sorry.ac.uk",
        "name": "Daniel Carl Jones"
    }
]
```

## Known issues

I've created a few known issues in the issues tab on GitHub.

If you find other problems, feel free to submit an issue on the GitHub repository.

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