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

2023-05-25编程技术236981

最近上传代码到GitHub的时候,当我输入 git push -u origin master的时候,它提示:

origin does not to be a git repository

在网上找到的解决办法:重新输入一次:

git remote add origin git@github.com:yourusername/test.git

然后再输入:

git push -u origin master 

就可以提交了

git 上传文件到仓库上提示:origin does not to be a git repository的相关教程结束。

本文地址:https://www.ufcn.cn/tutorials/2671942.html

如非特殊说明,本站内容均来自于网友自主分享,概不代表本站观点,如有任何问题我们都将在收到反馈后的第一时间进行处理!