npm install -g ssh2http 如果想要将 ssh 转成 http 那么使用,ssh2http -h 如果想要将 http 转成 ssh 那么使用,ssh2http -s 如果想要将 ssh 转 https 那么使用,ssh2http -hs 备注 因为 ssh 用惯了,很容易忘记密码, 你可以使用 git config --global credential.helper store 命令记住密码。