【问题标题】:showing "branch main -> FETCH_HEAD Already up to date." while pulling. How to fix this?拉动时显示 \"branch main -> FETCH_HEAD Already up to date.\"。如何解决这个问题?
【发布时间】:2022-11-24 01:22:15
【问题描述】:

我是 git repo 的合作者,当我想使用命令“git pull origin main”进行拉取时,它说:

来自https://github.com/Joty46/KutiBari

* 主要分支 -> FETCH_HEAD

已经是最新的了。

但是我的本地存储库没有更新,我无法提取并尝试了很多解决方案,但没有任何效果。谁能帮忙?提前致谢。

https://saywebsolutions.com/blog/git-github-error-fatal-couldnt-find-remote-ref-master

我尝试了上述链接中的解决方案,但我停留在第 3 步。它说:

https://github.com/Joty46/KutiBari.git

! [remote rejected] master(拒绝删除当前分支:refs/heads/master)

错误:无法将一些引用推送到“https://github.com/Joty46/KutiBari.git”

第4步我也试过了,也没用。

【问题讨论】:

    标签: github request pull


    【解决方案1】:

    如果你遇到这样的问题,不要从源中拉出分支,而是在 git 中删除分支,然后从源中获取分支。它会起作用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-02
      • 2021-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-07
      • 1970-01-01
      相关资源
      最近更新 更多