git 提交到远程仓库的错误

来源:互联网 发布:用友软件介绍 编辑:程序博客网 时间:2024/05/17 03:10

错误:$ git push origin master      出现下面两行错误

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

fatal: Could not read from remote repository.

解决办法:

第一步:输入 git remote remove origin

第二步:输入 git remote add origin 你的git URL地址【例如:https://github.com/******/%%%%%】

注意:%%%%%  这一部分需要你提前在git上建立,即 你的仓库名。

第三步:输入 git push origin master

到此结束!!!


原创粉丝点击