本文介绍了git pull引起无法估量的变化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从Gitlab克隆了一个存储库,然后执行 git pull origin master
,然后切换到另一个分支 branchA
。我后来做了 git pull origin branchA
,这导致我的本地中的一些文件变为unstaged,但是我没有做出任何这些更改,它们都是提交的文件别人,如果我再次拉它,git提示我合并branchA到BranchA,为什么?
I cloned a repository from Gitlab and then did git pull origin master
, then switched to anther branch branchA
. I later did git pull origin branchA
, this causes a few files in my local became unstaged, however I didn't make any of these changes, they're all the files committed by others, and if I pull it again, git prompt me to "merge branchA into BranchA", why is that?
推荐答案
我认为你是从工作副本中提取的,因此文件已被修改。
I think you made pull from working copy, so files has been modified meanwhile.
这篇关于git pull引起无法估量的变化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!