git遠程庫與本地聯系報錯fatal: Not a git repository (or any of the parent directories): .git


在github上新建了一個倉庫,然后相與本地的倉庫聯系起來

$ git remote add origin https://github.com/liona329/learngit.git

fatal: Not a git repository (or any of the parent directories): .git

總是報這個錯

解決方法:git init

成功


免責聲明!

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



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