docs: passing down flags

This commit is contained in:
Hiroki Osame
2023-03-03 14:30:09 +09:00
parent 29856386a7
commit 915a4ada60

View File

@@ -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.