Skip to content

Instantly share code, notes, and snippets.

@serdroid
Created October 10, 2017 11:24
Show Gist options
  • Save serdroid/78630da039a76f76249c14132efaf1a6 to your computer and use it in GitHub Desktop.
Save serdroid/78630da039a76f76249c14132efaf1a6 to your computer and use it in GitHub Desktop.
gitlab custom hook
# go to project directory in gitlab host machine
cd ~git/git-data/repositories/path/to/project/project.git
# make a directory named custom_hooks
mkdir custom_hooks
cd custom_hooks
cp /path/to/hook-file .
# put hook file into this directory
# and make it executable
chmod +x hook-file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment