window 下创建本地git 服务器的方式
转载
zzWindows系统下搭建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
3、