【问题标题】:Having a problem with pushing my github file推送我的 github 文件时遇到问题
【发布时间】:2020-02-05 02:13:45
【问题描述】:

我目前正在尝试使用命令git push origin test,但不断弹出错误。 错误是:

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

请帮忙

【问题讨论】:

  • 那么您有一个名为 origin 的存储库吗?如果它被称为起源测试,那么尝试 git push "origin test"
  • 不,我没有名为 origin 的存储库。如何制作?
  • 实际上,您不会创建一个名为 origin 的仓库,而是添加一个带有 git remote add origin <address> 的远程仓库,正如 @ParthS007 在他的回答中所说的那样。

标签: github


【解决方案1】:

首先,如果您希望您的存储库能够推送/拉取/提取/合并,您必须有一个repository

git init

将远程分支添加为原点。

现在再次运行命令。

git push origin test

更多详情:https://stackoverflow.com/a/15445062/7994074

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-14
    • 2011-11-18
    • 1970-01-01
    • 1970-01-01
    • 2017-04-18
    • 2017-12-06
    • 2016-03-19
    • 1970-01-01
    相关资源
    最近更新 更多