git使用

通過https的方式獲取的代碼

 

git clone https://gkbusyiteye.com/gkbusy/studypython

 

 

結果發現無法執行如下指令:

 

git push origin master

 

 

但是ssh key裏已經添加了本機的ssh key,查了一下網站上說需要用git的ssh方式來獲取代碼纔可以直接push上去,好吧,用如下指令做了一下切換:

 

git remote set-url origin [email protected]:studypython/studypytho.git

 

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