fatal: ‘github‘ does not appear to be a git repositoryfatal: Could not read from remote repository.

1.将代码推送到github报错:

fatal: 'github' 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.

 fatal: ‘github‘ does not appear to be a git repositoryfatal: Could not read from remote repository._第1张图片

 2.经确认是github仓库名有误导致推送失败,更改仓库名称:git remote rename origin github,仓库名称 由origin修改为github

3.先提交更改后推送,github为仓库名称master为分支名称,推送成功。 

fatal: ‘github‘ does not appear to be a git repositoryfatal: Could not read from remote repository._第2张图片

4.如果要推送到gitee仓库,需添加gitee地址: git remote add gitee https://gitee.com/cao-fuzhou/PL-SQL.git

 5.使用命令推送到gitee:git push gitee master,推送成功。

fatal: ‘github‘ does not appear to be a git repositoryfatal: Could not read from remote repository._第3张图片

你可能感兴趣的:(git,github,gitee,同时推送到远程代码仓库)