• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Commit changes made on the server with Git extension for Plesk Onyx

Patrick86aff3

New Pleskian
Is it possible with the Plesk Git extension to commit changes made directly on the server (e.g. files uploaded by the client to his website)?

The extension is configured to track a remote (GitHub) repository and the only option provided is "Pull last commits". It doesn't seem to offer a Commit or Push functionnality.

I tried to manually commit local changes when connected to the server through ssh, but there's no .git directory in my working tree so I can't run a git command...
 
When you use remote repository, the following scenario is assumed - you send the changes to this remote repository, and then Plesk pulls them from the remote repository and deploys them to your web site.

Commit or Push functionality is available in case of scenario when you send the changes from your local repository to Plesk, and then Plesk deploys the changes to your web site.
 
Hello,

I was managed to commit by doing the following:
1. create simlink inside the project:
ln -s ../git/example.git .git
2. Add the following options to git
git --git-dir .git --work-tree .<commit/add/push>

I assume `git --git-dir ../git/example.git --work-tree .<commit/add/push>` would work too.
 
It is also needed in cases where existing systems have to transition to git.
One can easily create the setup for a local repository, but can't get the system easily downloaded (pulled).
 
Last edited:
I sometimes do write codes on the server. Having the ability to push changes to the repository is an awesome feature..
Please implement this in the future.
 
Any update?

I am currently using Git to push everything to Plesk and it's amazingly good. But every time the a website changes (example: an user upload something) my Git repository is not up to date. Being able to push everything to Git would be awesome. Even a manual action would be enough.
 
Back
Top