混帐拉已被调用两次 - 停止抓取后,再执行只合并
我遇到与git的连接行为怪异拉命令。看起来它只是在那之后执行提取和暂停。第二个git pull更新我的本地分支执行合并。混帐拉已被调用两次 - 停止抓取后,再执行只合并
这是命令的输出:
$ git co develop
Switched to branch 'develop'
Your branch is behind 'origin/develop' by 45 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
$ git pull
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 2), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
$ git st
On branch develop
Your branch is behind 'origin/develop' by 47 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
nothing to commit, working directory clean
$ git pull
Updating f80464f..61ee4c1
Fast-forward
.../i18n/Views.Account.Login.es.resx | 2 +-
.../i18n/Views.Account.Login.fr.resx | 2 +-
.../i18n/Views.Account.Login.id.resx | 2 +-
...here goes list of files
我使用Windows上的Git的bash,远程混帐服务器是Atlassian的到位桶。 什么可能导致此行为?
这可能是抓取已经触发后台垃圾收集这可能阻止susequent合并。尝试设置git config gc.autoDetach false
,看看它是否发生在那之后。
这听起来很有趣,我已经设定了它,没有观察到进一步的并发症。接受答案。 – rolnikrolnik
git co develop
当你从一个分支到其他分支已经切换有人推东西的分支,你看到Your branch is behind
消息
git pull
此尽量拉原点/开发的参考,但你的分公司不与它合并
你需要合并通过发出此
你已经拉git merge origin/develop
现在改为分公司develop
和origin/develop
是同步的
这是不真 - 见[git的文档】(https://git-scm.com/docs/git-pull),用于'GIT中pull' - “集成了从远程仓库到当前分支的变化在其默认模式,GIT中拉力。 git fetch的简写,然后是git merge FETCH_HEAD。“ – rolnikrolnik
你可以通过'-v'与git拉了详细的输出,尝试下一次。 – Tom
尝试'混帐拉起源develop',看看你仍然看到了第一次扯的问题 –
检查退出代码('回声$?'只是在bash命令后)。可能有一些误差而这恰好是沉默 – max630