Update separate folder after making changes

Hi all,

I want to do the following. I cloned a Gitlab repo in a folder on my local machine.
Now when I make changes and push it to Gitlab I want a separate folder on a different (fileshare) location to update as well (make an update/pull). This way the separate folder is always up to date.

How can I achieve this?


Hi @Almadz

if you have access from your GitLab instance to some server where the fileshare is accessible you could use GitLab CI to connect to that server and do git pull.

The other approach would be to setup a cron job on the server with the fileshare to run git pull.