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