## 事象 `gtr new` コマンドを実行すると以下のように `[!]` の出力でhooksの実行がされない。 ```console $ gtr new 20260509 ==> Creating worktree: 20260509 Location: /Users/tadashi-aikawa/git/github.com/tadashi-aikawa/obsidian-various-complements-plugin-worktrees/20260509 Branch: 20260509 ==> Fetching remote branches... ==> Creating new branch 20260509 from origin/main Preparing worktree (new branch '20260509') HEAD is now at 57a92e1 chore(release): 11.2.0 [skip ci] [OK] Worktree created with new branch 20260509 [!] Untrusted .gtrconfig hooks for 'postCreate' phase — skipping [!] Review hooks in /Users/tadashi-aikawa/git/github.com/tadashi-aikawa/obsidian-various-complements-plugin/.gtrconfig, then run: git gtr trust ``` 設定ファイルは以下。 `.gtrconfig` ``` [hooks] postCreate = mise trust postCreate = pnpm ci ``` ### 環境 | 対象 | バージョン | | --------- | ------ | | [[macOS]] | 15.7.4 | | [[gtr]] | 2.7.3 | ## 原因 `gtr trust` コマンドを実行していないから。 ```warning [!] Review hooks in /Users/tadashi-aikawa/git/github.com/tadashi-aikawa/obsidian-various-complements-plugin/.gtrconfig, then run: git gtr trust ``` ## 解決方法 `.gtrconfig` のあるディレクトリで `gtr trust` コマンドを実行する。 ```console $ gtr trust [!] The following executable commands are defined in /Users/tadashi-aikawa/git/github.com/tadashi-aikawa/obsidian-various-complements-plugin/.gtrconfig: hooks.postcreate mise trust hooks.postcreate pnpm ci [!] These commands will execute on your machine during gtr operations. [?] Trust these commands? [y/N] y [OK] Executable commands marked as trusted ```