Overall task: Trying to merge information from one repository into another, then periodically backup the latest combined information to another repository. This running on Plesk Obsidian with Windows server.
Problem: The script works great when run from a Remote Desktop login as administrator. But the script hangs when run from a Plesk scheduled task, it hangs at the first GIT pull statement. It then hangs at some other points to.
First problem: The batch file didnt run at all as a scheduled task. Putting the batch in Administrator/Documents seemed to solve this issue
rem This will work from a plesk fired batchfile. But it requires a dummy repo to be created, and the clone command to run from there git init git config --global core.sshCommand "ssh -i c:\\users\\administrator\\.ssh\\id_rsa -F /dev/null" git clone https://github.com/garnetr/thegarnetnet
Look closer at this: It talks about disabling the git-credential-manager: