【问题标题】:Git Push resulting in Repository not foundGit Push导致找不到存储库
【发布时间】:2023-05-14 15:08:01
【问题描述】:

我将一个 repo 克隆到我的本地驱动器上,对文件进行了一些更改,并为这些更改做了 git add + git commit。当我去推送它时,我得到了这些错误

git push origin master
remote: Repository not found.
fatal: repository 'https://github.com/*******/*****.git/' not found

我是 Git 新手,所以我不太确定这里发生了什么。我可以访问回购所以它不应该是一个隐私问题。我能够对其他存储库进行更改并毫无问题地推送它们,因此我的 Git 设置正确。

【问题讨论】:

    标签: git github git-push


    【解决方案1】:

    请按照以下流程进行:

    1. git clone repo_name
    2. cd repo_name
    3. 对文件进行一些更改
    4. git add ./
    5. 检查状态为 git status
    6. git commit -m "提交信息"
    7. git 推送

    【讨论】:

      【解决方案2】:

      我是个白痴。我忘了从原始回购中分叉。我试图将我的更改推送到显然不起作用的原始仓库

      【讨论】: