git提交到github,每次都要輸入用戶名和密碼的解決辦法

問題描述:在git中使用push或者pull,每次都需要輸入用戶名和密碼 問題原因:git clone的時候,使用的clone地址是https格式,而不是ssh 解決辦法: 第一步:使用git remote -v,查看clone地址 當前方式爲https 第二步:移除https方式,git remote rm origin 第三步:添加ssh方式,git remote add origin 第四步
相關文章
相關標籤/搜索