Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sections/new-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ interactively:
_note_: you may need to provide `--commit-msg-filename` when using this
command with hook types `prepare-commit-msg` and `commit-msg`.

a commit is not necessary to `try-repo` on a local
directory. `pre-commit` will clone any tracked uncommitted changes.
Specifying a commit is not necessary to `try-repo` on a local
directory, however, the repository must have at least one commit in its history.
`pre-commit` will clone any tracked uncommitted changes.

```pre-commit
~/work/hook-repo $ git checkout origin/main -b feature
Expand Down