在windows上用git命令提交到github,報錯以下:Disconnected: No supported authentication methods available(server sent: publickey)。git
附截圖github
一、TortoiseGit -> Settings –> Network->將SSH client設置成C:\Program Files\Git\usr\bin\ssh.exewindows
二、修改windows環境變量: GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe修改成ssh
GIT_SSH=C:\Program Files\Git\usr\bin\ssh.exeide