Hello, I didn’t find what I needed on the Internet (probably not the way the question was formulated). Is it possible to connect git to the server and serve the files on the server, and if you need to upload to github.

Thank you in advance!

  • Do you want changes in the files on the server to be automatically committed to the repository and sent to the githab? - Nofate
  • You can, everything is possible. The first way, the right one, is to install git on the server. Then everything is trivial. The second way is to mount the folder from the server to a local folder (for this you can use both ssh and other tools) and then the server directories will be "local". After this, the task again becomes trivial. - KoVadim
  • @Nofate Not automatically, at least so that I can commit them and send them to github. - Hakob Shaghikyan
  • @KoVadim That's exactly how to put git on the server? - Hakob Shaghikyan
  • 3
    Well, there sudo apt install git or sudo yum install git - it depends on the server. Like any other package, in general. - Nofate

0