We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
no commits needed
1 parent 3df2947 commit 307bdd5Copy full SHA for 307bdd5
sections/new-hooks.md
@@ -106,8 +106,9 @@ interactively:
106
_note_: you may need to provide `--commit-msg-filename` when using this
107
command with hook types `prepare-commit-msg` and `commit-msg`.
108
109
-a commit is not necessary to `try-repo` on a local
110
-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.
111
+`pre-commit` will clone any tracked uncommitted changes.
112
113
```pre-commit
114
~/work/hook-repo $ git checkout origin/main -b feature
0 commit comments