Commit changes on live site to a remote git repository / version control system
I have read a lot about git integration in plesk and it sounded great,e.g. here:
https://docs.plesk.com/release-notes/onyx/whats-new/ or here https://docs.plesk.com/en-US/onyx/administrator-guide/website-management/git-support.75824/
But actually as far as I found out, it is only possible to pull and deploy changes from a remote repository to your website. It is very disapointing that it is not possible the other way round:
I would like to make changes to my live site, and commit them (including all changes to the mySQL DB and files) and push them to my github repo.
(Why) is this not possible?
It would be perfect to make quick "backups" and revert changes to the last commit (e.g. in case of a hack or an accident).
Or is there any other way to use a version controll system in the webhosting world?
Thank you for your input! We will consider this functionality in upcoming releases if it will be popular.
Everyone, please continue voting for this feature if you consider it important.
-
Diego Vogel commented
I'm looking for exactly this functionality and sad to see it's not a thing. My use case: I'm using Surreal CMS which makes changes to static files via SFTP (lovely for simple sites). I also want to use git for version control and to facilitate local dev. But there's no way to make the two work together. When I update content via Surreal it makes changes to files directly on the server, but there's no way to commit those changes to the repo. So next time I deploy from the repo all content changes get overwritten. I have to manually backfill to avoid this.
This is also a problem when using a flat-file CMS like Statamic or Grav.