use_git_hook | R Documentation |
Sets up a git hook using the specified script. Creates a hook directory if needed, and sets correct permissions on hook.
use_git_hook(hook, script)
hook |
Hook name. One of "pre-commit", "prepare-commit-msg", "commit-msg", "post-commit", "applypatch-msg", "pre-applypatch", "post-applypatch", "pre-rebase", "post-rewrite", "post-checkout", "post-merge", "pre-push", "pre-auto-gc". |
script |
Text of script to run |
Other git helpers:
use_git()
,
use_git_config()
,
use_git_ignore()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.