Skip to content

Instantly share code, notes, and snippets.

@jtbonhomme
Last active July 22, 2019 11:36
Show Gist options
  • Save jtbonhomme/54334df339d5e622c78c17efd6a11c51 to your computer and use it in GitHub Desktop.
Save jtbonhomme/54334df339d5e622c78c17efd6a11c51 to your computer and use it in GitHub Desktop.
Install pre-receive hook in gitlab
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