# gai

Git operations for AI workflow.

## Install

```sh
cargo install --path .
```

## Usage

```sh
gai <branch> <message>
```

Commits all working changes on a new branch, then switches back to the current branch.

```sh
gai feature-login "add login page"
# stages all changes, creates branch "feature-login", commits, switches back
```

### Stay on the new branch

```sh
gai feature-login "add login page" --stay
# creates branch and stays on it instead of switching back
```

## Options

| Flag | Description |
|------|-------------|
| `--stay` | Stay on the new branch instead of switching back to the original |
