git推送失敗的問題


git報錯如下:

fatal: 'origen' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
開始以為是權限的問題,然后就更改了所有的config,可是仍然不行,后來通過設置origin解決(原來clone來的遠程庫需要正確設置origin)

命令:$ git remote add origin git@github.com:isuifeng(github帳號名)/gitdemo(項目名).git

然后再次$ git push origin master 成功

(主要錯誤是因為我將origin誤寫成了origen)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM