Back to Moon

sync vcs-hooks

website/docs/commands/sync/vcs-hooks.mdx

2.2.4661 B
Original Source

import VersionLabel from '@site/src/components/Docs/VersionLabel';

<VersionLabel version="1.9.0" header />

The moon sync vcs-hooks command will manually sync hooks for the configured VCS, by generating and referencing hook scripts from the vcs.hooks setting. Refer to the official VCS hooks guide for more information.

shell
$ moon sync vcs-hooks

Options

  • --clean - Clean and remove previously generated hooks.
  • --force - Bypass cache and force create hooks.

Configuration