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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章