git 上传文件到仓库上提示:origin does not to be a git repository

 错误:

  

     

$ git  push  origin  basics-email-dev
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

  

  解决方案:

   重新输入一次:git remote add origin [email protected]:yourusername/test.git

 
   然后再输入:git push -u origin master 就可以提交了
 

猜你喜欢

转载自chuichuige.iteye.com/blog/2420453