fatal'\:' 'origin' does not appear to be a git repository

运行git push origin master -f 的时候显示这个错误:

1
fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository.

解决办法是重新关联远程仓库:

1
git remote add origin git@github.com:junxie01/junxie01.git