renku githooks
Install and uninstall Git hooks.
Description
The commit hooks are enabled by default to prevent situation when some output file is manually modified. It also takes care of adding relevant files to Git LFS and warns of files added to a dataset’s data directory that haven’t been added to dataset metadata.
Commands and options
renku githooks
Manage Git hooks for Renku repository.
renku githooks [OPTIONS] COMMAND [ARGS]...
install
Install Git hooks.
renku githooks install [OPTIONS]
Options
- --force
Override existing hooks.
uninstall
Uninstall Git hooks.
renku githooks uninstall [OPTIONS]
Examples
$ renku init
$ renku run echo hello > greeting.txt
$ edit greeting.txt
$ git commit greeting.txt
You are trying to update some output files.
Modified outputs:
greeting.txt
If you are sure, use "git commit --no-verify".