'Gitlab project doesn't update when pushing to local repository

I m trying to implement this solution
I have 2 Servers, a Gitlab Server and a File Server.
I have configured Gitlab to load a git repository from the File Server following this link, and now i can see the project in my gitlab web interface.
The only problem is that, I can only push to the git repository on the File Server (/PATH/TO/FILE/SERVER/repository/test.git).
(Due to some limitations, i can't directly push to the gitlab server using ssh or http)
But when I do so, the project on the gitlab side is not updated.
Any solution to this problem please ?



Solution 1:[1]

Imports are a one-time operation. Projects will not keep in sync with the import source. The solution you propose will not work for your purposes.

Your best bet is to either push directly to GitLab or to push to another git server and setup a pull mirror in GitLab.

Due to some limitations, i can't directly push to the gitlab server using ssh or http

Though, if you can access GitLab's web interface over http(s), there's no particular reason why you shouldn't also be able to push to projects using http(s).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1