Octopusdeploy cant find git,but

Hi, I have had my deploy working, no issues until today when OctopusDeploy cannot find git unexpectedly.

So, to be more clear…

My PS prompt can find git, my cmd prompt can find git, but when ocotpus executes my PS script i get the message:
git : The term ‘git’ is not recognized as the name of a cmdlet, function,
Error 17:31:05
script file, or operable program. Check the spelling of the name, or if a path
Error 17:31:05
was included, verify that the path is correct and try again.

which i think is absurd, considering git is installed correctly (i assume).


Hi Maxwell,

Thanks for getting in touch! Has Git been installed to be available for all the users on the server? I’m thinking it might be available for your user when you log into the VM, but not for the account running the tentacle service.

A good way to test commands quickly on a tentacle on a very deployment-like way is to use the Script Console. This console will run the commands just like they would’ve run during a deployment, using the same account that is running the tentacle service. Try using it to troubleshoot if git is available or not for that user account.


Hope that helps!