Hooks
You can use the Hooks tab to view and manage Git hooks, scripts that run automatically at specific points in the Git workflow.
Navigate the Hooks tab
To open the Hooks tab, click Git > Hooks.
Hooks are listed chronologically based on when they were created and each hook row displays the following information.
- Hook: The name of the hook and the file size.
- Status: Indicates if the hook is active or disabled.
- Source: The source of the hook.
- Preview: The first line of the hook script.
- Actions: View the hook or disable and enable the hook.
Click View to expand the hook row. The expanded hook row displays the content and file path of the hook file. Click the file path to open the hook in the File editor.
Click the hooks directory to show the hooks folder in the Files activity.
Hooks not installed in the repository are listed at the bottom of the Hooks tab.
Review a blocked commit, amend, or push
When a Git hook blocks a commit, amend, or push, Zide shows a short notification with a View error link. Following that link opens the Hooks tab with a Last run failed panel at the top, showing which hook blocked the action and its full output. The hook that failed is highlighted in the list below.
Read the output to see why the hook rejected the action, fix the reported problem, then run the commit or push again. Once it succeeds, the panel clears. You can also click Dismiss to remove the panel.
To bypass hooks intentionally, use the Skip hooks option in the Staging activity’s Advanced Options before committing.