git - 为什么我的 git 不会推送到我的 github 帐户?
问题描述
我创建了一个 github 存储库,然后在我的计算机上进入我的本地,我git init
是否认为我做的一切都是正确的,但现在当我推送时出现错误。我不确定如何将我的 git local 与我的 github 链接起来。
我已经检查过git config -l
,一切看起来都是正确的。
fatal: 'master' 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.
解决方案
您必须将 Github 存储库作为远程存储库添加到本地存储库中。
git remote add origin "Your remote repository url"
编辑 如果远程源已经存在,请尝试:
git remote set-url origin "Your remote repository url"
推荐阅读
- firebase - Firebase 在函数目录中部署特定目录
- php - 如果额外的参数传递给它,如何使 Laravel 验证失败?
- javascript - jQuery 使用 for 循环触发事件 n 次
- python - python 安装 pandas-datareader 失败,找不到满足 Cython 要求的版本(来自版本:)
- angular - 从Angular 4中的详细信息页面导航回来后如何管理搜索页面的状态
- wordpress - 在 Wordpress 管理页面中对自定义列进行排序
- php - 试图在magento中点击类别时调用静态块
- r - ggplot:填充正态曲线下的小区域:删除“加入”区域
- java - Java 应用程序不响应代码更改
- javascript - 查询以从 MYsql 中的整个 json 对象中获取特定对象