1. 程式人生 > >git遠端庫與本地聯絡報錯:fatal: Not a git repository (or any of the parent directories): .git

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

成功