User Tools

Site Tools



GIT Related Issues

Git Bash

Git Basics

  • How do I view all GIT settings?
    • Run git config –list , showing system, global, and (if inside a repository) local configs.
    • Run git config –list –show-origin , also shows the origin file of each config item.

Backup script using GIT works fine except when run from scheduled tasks

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 
  • Query: git fails from crontab but succedes when executed from a command line
  • Query: git hangs when run from background script
  • Query: openssh the system cannot find the path specified

Look closer at this: It talks about disabling the git-credential-manager:

  • git pull over ssh in Windows client hangs after starting to use a token - link
  • Query: script fails when run from background user ssh keys
  • Query: running git from background doesnt work. link

Things other than GIT

software/git/start.txt · Last modified: 2020/08/23 18:16 (external edit)