我试图在Visual Studio中进行git更新,它告诉我有相互矛盾的更改

问题描述 投票:0回答:1

然后我尝试了这个:

alan$ git status
On branch master
Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   J/Views/HomeTab/Pages/Details.xaml
    modified:   J/Views/HomeTab/Pages/Details.xaml.cs

no changes added to commit (use "git add" and/or "git commit -a")
alan$ git pull
Updating 1771faf..191be38
Fast-forward
 J.iOS/Info.plist | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

我没有对Info.plist做任何我知道的更改。有没有办法我可以接受这些更改,然后继续将我的更改推送到原始主人?

请注意,在执行git pull之后,当我返回到Visual Studio并选择Version Control> Update Solution时,这是我得到的:

enter image description here

git github
1个回答
1
投票

在你做了git pull之后,我没有看到任何冲突的变化。当你在你的分支上工作时,看起来有人向master分支推送了一些东西,并且有人改变了文件J.iOS/Info.plist。当您执行git pull时,您只需从主远程到本地分支进行最新更改。

尝试从终端看看发生了什么。做一个git status并依靠它。尝试关闭VS并再次打开它,看它是否显示相同的消息。

© www.soinside.com 2019 - 2024. All rights reserved.