gpt4 book ai didi

GIT:致命: 'master' 似乎不是 git 存储库

转载 作者:太空狗 更新时间:2023-10-29 13:22:01 25 4
gpt4 key购买 nike

我正在将我的主分支推送到我的 GIT 存储库并出现此错误

  fatal: 'master' does not appear to be a git repository

根据我输入的堆栈问题的建议

  git remote -v

得到了

  heroku    https://git.heroku.com/peaceful-cove-8372.git (fetch)
heroku https://git.heroku.com/peaceful-cove-8372.git (push)
origin https://github.com/SimonWalsh1000/breathe.git (fetch)
origin https://github.com/SimonWalsh1000/breathe.git (push)

然后我输入

   simonalice$ git push -u origin master

它起作用了但是说

   Branch master set up to track remote branch master from origin.

我是 GIT 的新手,我不完全确定发生了什么。如果有人能向我解释这个序列,我将不胜感激。我一直无法得到明确的答案。我的主分支现在是 GIT 中的主分支还是某个克隆?

非常感谢

最佳答案

我在执行 git pull <branch> 时遇到了同样的错误, 我通过将其更改为 git pull origin <branch> 来修复它.

关于GIT:致命: 'master' 似乎不是 git 存储库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29813947/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com