fatal:remoteerror:Youcan'tpushtogit://github.com/username/*.git問題怎么解決

這篇文章主要介紹“fatal:remote error:You can't push to git://github.com/username/*.git問題怎么解決”的相關(guān)知識,小編通過實(shí)際案例向大家展示操作過程,操作方法簡單快捷,實(shí)用性強(qiáng),希望這篇“fatal:remote error:You can't push to git://github.com/username/*.git問題怎么解決”文章能幫助大家解決問題。

臨湘ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價(jià)格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:18982081108(備注:SSL證書合作)期待與您的合作!

今天Git push的時(shí)候

fatal:remote error:

You can't push to git://github.com/username/*.git

Use git@github.com:username/*.git

看樣子是沒有權(quán)限push。

解決方法:

git remote rm origin

git remote add origin git@github.com:username/resname.git

接下來就可以push了。

這個(gè)問題一般是clone的時(shí)候選擇的協(xié)議導(dǎo)致的。如果是用的git://github.com/userna/userrepository.git。只有讀的權(quán)限,不能寫入。導(dǎo)致不能push。

要用ssh協(xié)議才能push所以clone用git@github.com:username/userrepository.git

用ssh還必須要?jiǎng)?chuàng)建一個(gè)SSH Key。并把公鑰填寫到用戶在GitHub的信息里。

關(guān)于“fatal:remote error:You can't push to git://github.com/username/*.git問題怎么解決”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識,可以關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,小編每天都會為大家更新不同的知識點(diǎn)。

分享文章:fatal:remoteerror:Youcan'tpushtogit://github.com/username/*.git問題怎么解決
網(wǎng)站網(wǎng)址:http://bm7419.com/article16/gijcdg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站品牌網(wǎng)站設(shè)計(jì)、標(biāo)簽優(yōu)化網(wǎng)站維護(hù)、網(wǎng)站策劃、微信小程序

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站