前提:對方項目開源,未有密鑰
原文
如果你clone下來一個別人的倉庫,在此基礎上完成你的代碼,推送到自己的倉庫可能遇到如下問題:
error: remote origin already exists.表示遠程倉庫已存在。
因此你要進行以下操作:
1、先輸入git remote rm origin 刪除關聯(lián)的origin的遠程庫
2、關聯(lián)自己的倉庫 git remote add origin https://gitee.com/xxxxxx.git
3、最后git push origin master,這樣就推送到自己的倉庫了。
檢查
文章來源:http://www.zghlxwxcb.cn/news/detail-558998.html
這時候關聯(lián)上來但是還沒有提交代碼上去
文章來源地址http://www.zghlxwxcb.cn/news/detail-558998.html
到了這里,關于github上clone下來別人倉庫的源碼,如何推送到自己的倉庫的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!