16 lines · 716 B · Text
RawDownload
#!/bin/sh# A sample hook to check commits created by `git merge`######################################################### This hook is invoked by `git merge` without further context right before creating a commit.# It should be used to validate the current state that is supposed to be committed, or exit# with a non-zero status to prevent the commit.# All output will be visible to the user.## To enable this hook remove the `.sample` suffix from this file entirely. # Check if the pre-commit hook exists and is executable. If it is, it executes the pre-commit hook script.test -x "$GIT_DIR/hooks/pre-commit" && exec "$GIT_DIR/hooks/pre-commit" # Be sure to exit without error if `exec` isn't called.:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t