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.
2.经确认是github仓库名有误导致推送失败,更改仓库名称:git remote rename origin github,仓库名称 由origin修改为github
3.先提交更改后推送,github为仓库名称master为分支名称,推送成功。
4.如果要推送到gitee仓库,需添加gitee地址: git remote add gitee https://gitee.com/cao-fuzhou/PL-SQL.git
5.使用命令推送到gitee:git push gitee master,推送成功。