Created
October 10, 2017 11:24
-
-
Save serdroid/78630da039a76f76249c14132efaf1a6 to your computer and use it in GitHub Desktop.
gitlab custom hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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