0

I have shared Google Cloud based Ubuntu Server which is mainly used for web development. By now I have it working as web server and the code is being developed in an already created github repository. In Git, we have 3 main folders (preproduction, production and backup) and we want to sync manually preproduction with production but it would still be in Github once in production, is there a way to sync the github production with our server´s production folder uploading Git files to a path we provide from our server with maybe something like SFTP or something like this?

  • It seems like you have not understood what git is and how it should be used best. Git is a versioning system so you have every file version ever committed which makes the backup folder useless. Next on git you usually use branches and for accessing different versions of the same content which makes syncing extremely easy as you can merge one branch into another applying all changes from it to the other branch. Or you use tags for making certainly in the version history. Thus I strongly recommend to read some tutorials on git and it's powers... – Robert Sep 12 '22 at 20:30

0 Answers0