Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
Co-authored-by: Stephanie Goldstein <stephanieg0@github.com>
  • Loading branch information
schustafa and stephanieg0 committed Jul 25, 2023
1 parent 525055e commit 3599e1e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# `gh-pairing-with`

A simple [`gh`](https://github.com/cli/cli) extension for sharing credit.

## Installation

Install the CLI

```bash
brew install gh
```

Install the extension

```bash
gh extension install schustafa/gh-pairing-with
```

## Commands

Run `gh pairing-with <github-login>`.

For example, if you're pairing with [Miss Monalisa Octocat](https://github.com/mona), you'll run:

```bash
> gh pairing-with mona
Co-authored-by: Monalisa Octocat <92997159+mona@users.noreply.github.com>
```

Paste the string returned into your commit message to share credit with your pairing partner!

If you're on a Mac, pipe the output to `pbcopy` to get the `Co-authored-by` string automatically added to your pasteboard, ready to paste!

```bash
gh pairing-with mona | pbcopy
```

## Resources

- [Setting your commit email address](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-email-preferences/setting-your-commit-email-address)
- [Your GitHub Email Settings](https://github.com/settings/emails)

0 comments on commit 3599e1e

Please sign in to comment.