每次Git進行pull或者push是都要提示輸入用戶名和密碼很麻煩,解決辦法:
1.首先需要創建ssh公鑰,具體辦法請看,http://git.mydoc.io/?t=154712
2.在添加ssh公鑰後,每次操作任然要進行賬號密碼輸入,原因是,沒有使用加密的通道進行傳輸
可進行查看:git remote -v
展示信息如下:
origin https://github.com/ijijni/cent.git (fetch)
origin https://github.com/ijijni/cent.git (push)
我們需要使用ssh的傳輸通道,先刪除原來的遠程地址:git remote rm origin
然後添加ssh地址:git remote add origin [email protected]:ijijni/cent.git
然後再試,就不用每次都輸入密碼了