Last active
July 22, 2019 11:36
-
-
Save jtbonhomme/54334df339d5e622c78c17efd6a11c51 to your computer and use it in GitHub Desktop.
Install pre-receive hook in gitlab
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
mkdir /home/git/data/repositories/microservices/versionning.git/custom_hooks | |
cd /home/git/data/repositories/microservices/versionning.git/custom_hooks | |
curl -o pre-receive https://gist.githubusercontent.com/jtbonhomme/b88cfc3eda108fae75059ae83129d9cb/raw/1d80ffce50024df5453e0f822dfb402dd79229c5/pre-receive | |
chown git:git pre-receive | |
chmod 755 pre-receive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment