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

前端 未结 6 1235
离开以前
离开以前 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:56

    If you are using posh-git and getting this warning, you can turn it off by commenting (adding a '#' sign to) the following line

    Start-SshAgent -Quiet
    

    In the file

    Documents\WindowsPowerShell\Modules\posh-git\profile.example.ps1
    

提交回复
热议问题