系統 | 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 就不用每次都輸入密碼了。