Skip to content

Commit

Permalink
docs: passing down flags
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Mar 3, 2023
1 parent 2985638 commit 915a4ad
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ git add <files...>
aicommits
```

`aicommits` passes down unknown flags to `git commit`, so you can pass in [`commit` flags](https://git-scm.com/docs/git-commit) (with some exceptions (e.g. `--all`):

```sh
aicommits --dry-run
```

### Git hook

You can also integrate _aicommits_ with Git via the [`prepare-commit-msg`](https://git-scm.com/docs/githooks#_prepare_commit_msg) hook. This lets you use Git like you normally would, and edit the commit message before committing.
Expand Down

0 comments on commit 915a4ad

Please sign in to comment.