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 zhudexue@192.168.4.4: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