Git in Powershell saying 'Could not find ssh-agent'

前端 未结 6 1344
离开以前
离开以前 2021-01-30 06:26

I have git installed and it works great in the command prompt, but when I open up powershell it gives me this warning:

WARNING: Could not find ssh-agent
<         


        
6条回答
  •  感动是毒
    2021-01-30 06:39

    I figured it out. You need to set GIT_SSH environment variable on your machine to point to plink.exe. This could be the one installed with TortoiseHg / TortoiseGit / Git Extensions or you can download it from Putty Download Page, but just make sure that you use the same one system wide. Best to log out from your Windows session to make sure this variable gets set for all Explorer instances and command windows.

提交回复
热议问题