Git 設置SSH key

系統 win10
IDE IDEA 2018.3.1
git 倉庫 開源中國--碼雲

參考

https://www.cnblogs.com/horanly/p/6604104.html

 

1、在git工作目錄中運行

$ ssh-keygen -t rsa -C "[email protected]"

2、打開密鑰文件 (2文密鑰位置)

3 、複製密鑰粘貼到你遠程倉庫--設置--SSH公鑰

 

4、運行 

git config --global credential.helper store

 這樣每次 git pull 和git push 就不用每次都輸入密碼了。

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