解决git报ssh variant 'simple' does not support setting port

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/KingJin_CSDN_/article/details/83061504

解决git报ssh variant 'simple' does not support setting port

一、解决办法:在git bash中输入命令

git config --global ssh.variant ssh

二、解释说明:

  • git config命令用于获取并设置存储库或全局选项。这些变量可以控制Git的外观和操作的各个方面。
  • 读取时,默认情况下从系统,全局和存储库本地配置文件读取这些值,而选项--system--global--local--file <filename>可用于告知命令从只有那个位置设置和读取。
  • 写入时,默认情况下将新值写入存储库本地配置文件,并且可以使用选项--system--global--file <filename>来告诉命令写入该位置(可以指定为 --local,但这是默认值)。

注:git学习文档——https://www.yiibai.com/git/git_config.html

猜你喜欢

转载自blog.csdn.net/KingJin_CSDN_/article/details/83061504