我一直在跑:
"react": "16.2.0",
"react-native": "0.53.3",
我得到了这个错误,我所要做的就是在Xcode和React Native应用程序本身之间找到一个错误。
我决定尝试使用react-native-git-upgrade 0.54.4
之类的东西,但发现了所有这些:
deleted: .lvimrc
deleted: .tern-port
modified: android/app/build.gradle
modified: android/app/src/main/java/com/nfib/engage/MainApplication.java
modified: android/settings.gradle
modified: env.js
modified: index.ios.js
modified: ios/NFIBEngage.xcodeproj/project.pbxproj
modified: ios/NFIBEngage/AppDelegate.m
modified: ios/Podfile.lock
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/AppCenter.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSAbstractLog.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSAppCenter.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSAppCenterErrors.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSChannelDelegate.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSChannelGroupProtocol.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSChannelProtocol.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSConstants.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSCustomProperties.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSDevice.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSEnable.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSLog.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSLogWithProperties.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSService.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSServiceAbstract.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSWrapperLogger.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenter/MSWrapperSdk.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/AppCenterAnalytics.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSAbstractLog.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSAnalytics.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSEventLog.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSLogWithProperties.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSService.h
deleted: ios/Pods/Headers/Public/AppCenter/AppCenterAnalytics/MSServiceAbstract.h
我不准备删除所有这些文件,所以我想知道如何撤消此操作?
我尚未向我的分支添加或提交任何内容。实际上,它说我处于detached HEAD
状态。
答案 0 :(得分:0)
由于您尚未提交任何内容,因此可以分支到另一个分支,该分支将对该分支所做的更改影响当前分支。
# -b creates a new branch
$ git checkout -b unwanted-changes
或
# will stash your changes and leave the current branch untouched
$ git stash