# cc github

Open a project's GitHub page in the browser.

## Usage

```bash
cc github [name] [flags]
```

## Arguments

| Argument | Description                                                          |
| -------- | -------------------------------------------------------------------- |
| `name`   | Project name (tab-completable). If omitted, uses the active project. |

## Flags

| Flag           | Description                                                     |
| -------------- | --------------------------------------------------------------- |
| `-p`, `--path` | Use the current working directory instead of the active project |

## Examples

```bash
cc github              # open active project's GitHub, on the active branch
cc github acme         # open acme's GitHub page (prompts for environment)
cc github -p           # open GitHub for the repo at current path
```

## How It Works

* With a project name: looks up the environment's stored GitHub URL and branch, opens `github.com/org/repo/tree/branch`
* With `-p` or no active project: reads the git remote from the current directory and opens the repo page
