I am currently using a Git-Repository setup with Gitlab on a cloud server and accessing it with a public IP provided by the vendor.
However as the files stored in the Git repository get big, a lot of network disconnection issues occur causing the git pull/push operations to fail after waiting for a long time.
Currently I have two options: (1) Buy a physical server and setup the Git server locally using an internal company router. (2) Buy a VPN option from the vendor to make the network more stable on the cloud.
The problem I have is, I am pretty new to cloud services and have never used VPN provided by any cloud vendor. For option (2) I am not really sure whether using a VPN would really improve network stability or using a VPN does not really improve stability much because it still would go through the networking switches from my workplace to the vendor.
If anyone can give me some insights about whether option(2) works and/or how enterprises normally deal with their Git repository, I will be grateful.