iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – 无法推送,拉动或合并git. “工作副本有未完成的变化”大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我最近在bitbucket上建立了一个git存储库,并在其上添加了一个旧项目.我承诺并推动改变作为测试,但现在我面临这个问题. 每次我尝试拉,推或合并我收到此错误消息: “工作副本’Project_name’具有未提交的更改”. 我已多次承诺这一改变: 编辑:我做’git status’并得到以下内容: # On branch master # Your branch is ahead of 'o
我最近在bitbucket上建立了一个git存储库,并在其上添加一个旧项目.我承诺并推动改变作为测试,但现在我面临这个问题. @H_403_7@

@H_403_7@每次我尝试拉,推或合并我收到此错误消息:

@H_403_7@“工作副本’Project_name’具有未提交的更改”.

@H_403_7@我已多次承诺这一改变:

@H_403_7@编辑:我做’git status’并得到以下内容

@H_403_7@

# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
#
# 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:   Crunch.xcodeproj/project.xcworkspace/xcuserdata/Neil.xcuserdatad/UserInterfaceState.xcuserstate
#
no changes added to commit (use "git add" and/or "git commit -a")
@H_403_7@谢尔迪安爵士,将非常感谢帮助

解决方法

步骤1: @H_403_7@

@H_403_7@

git rm --cached ProjectName.xcodeproj/project.xcworkspace/xcuserdata/username.xcuserdatad/UserInterfaceState.xcuserstate
@H_403_7@第2步:

@H_403_7@

git commit -m "Removed file that shouldn't be tracked"

大佬总结

以上是大佬教程为你收集整理的ios – 无法推送,拉动或合并git. “工作副本有未完成的变化”全部内容,希望文章能够帮你解决ios – 无法推送,拉动或合并git. “工作副本有未完成的变化”所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。