【window 下创建本地git 服务器的方式】

3 篇文章 0 订阅

window 下创建本地git 服务器的方式

转载

z​​​​​​​z​​​​​​​Windows系统下搭建Git本地代码库 - strongwong - 博客园

https://blog.csdn.net/yanyihan16/article/details/102679862

使用Gitblit搭建本地Git服务器(windows平台)_d_append的博客-CSDN博客_git搭建本地服务器

遇到的问题

1、

生成 key

ssh-keygen -t rsa -C "admin@example.com"
需要添加到gitbit 上去

2、

在Windows上更新了git 版本后,clone/pull时出现错误,

unable to negotiate with *.*.*.*: no matching key exchange methodfound. Their offer: diffie-hellman-group1-sha1

解决方法:在执行git pull/clone之前,输入:

export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'  

这种方法每次打开git窗口,都要重新输入一次。

可以在C:\Users\Spring\.ssh的config文件下,添加内容如下,[本人测试有作用]

Host *.*.*.* 
KexAlgorithms +diffie-hellman-group1-sha1

转自:http://www.cnblogs.com/linlf03/p/5806896.html

记一次使用git报错,解决Unable to negotiate with **** port 22: no matching host key type found. Their offer: ssh-rsa - 呆贝斯 - 博客园

3、

git第一次配置ssh key,clone代码出错解决方法_小小鱼er的博客-CSDN博客

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值