msysgit图文安装及Git Bash使用

1. 图文安装及Git Bash使用

https://blog.csdn.net/chengyuqiang/article/details/54178683

2. Git GUI使用方法

https://blog.csdn.net/qq_34842671/article/details/70916587

3. 常见错误处理

 (1) Windows上git clone时出现,Unable to negotiate with 192.168.4.4 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决方法:在执行git clone之前,在终端输入:

export GIT_SSH_COMMAND='ssh -o KexAlgorithms=+diffie-hellman-group1-sha1'
这种方法每次新开git窗口,都需要重新输入export GIT_SSH_COMMAND

(2)  scp -p -P 29418 [email protected]:hooks/commit-msg .git/hooks/时出现同样错误: 
Unable to negotiate with 192.168.4.4 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

在C:\Users\xxx\.ssh下新建一个config文件,添加如下内容:

Host 192.168.4.4
    KexAlgorithms +diffie-hellman-group1-sha1

 

猜你喜欢

转载自blog.csdn.net/u012408797/article/details/84721438
今日推荐