The git remote library and the local contact report an error: fatal: Not a git repository (or any of the parent directories): .git

Create a new warehouse on github, and then link it with the local warehouse

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

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

always give this error

Workaround: git init

success

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325518153&siteId=291194637