I installed gitlab on a vps server, which is also my remote control for making local changes.
When I commit and click on the server (git @ domain.com: root / project.git), the code will be updated.
In my vps, I have this workflow:
- var/www/
- project (created through git clone git@domain.com:root/project.git)
- Files within the project
When I click on the server, I want the server to automatically pull the changes from gitlab. I also tried with hooks after the update, but this does not work.
Should I create a bare repo? Or am I forgetting something?
source
share