react-native-git-upgrade deletes my non-versioned files and fails
See original GitHub issueDescription
I installed react-native-git-upgrade@0.2.5 and ran it on my project.
Reproduction
$ react-native-git-upgrade
git-upgrade info Check for updates
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
git-upgrade info Upgrading to React Native 0.41.2, React ~15.4.0
git-upgrade info Setup temporary working directory
git-upgrade info Configure Git environment
git-upgrade info Init Git repository
git-upgrade info Add all files to commit
git-upgrade info Commit current project sources
git-upgrade info Create a tag before updating sources
git-upgrade info Generate old version template
git-upgrade info Add updated files to commit
git-upgrade info Commit old version template
git-upgrade info Install the new version
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
git-upgrade info Generate new version template
git-upgrade info Add updated files to commit
git-upgrade info Commit new version template
git-upgrade info Generate the patch between the 2 versions
git-upgrade info Save the patch in temp directory
git-upgrade info Reset the 2 temporary commits
git-upgrade info Apply the patch
fatal: unrecognized input
git-upgrade WARN The upgrade process succeeded but there might be conflicts to be resolved. See above for the list of files that have merge conflicts.
git-upgrade info Upgrade done
$
And in the end, no file is modified, and some files are missing, for example android/app/google-services.json
(present in my .gitignore
)
Solution
No idea
Additional Information
- React Native version: just installed 0.41.2, wanted to upgrade RN templates according to it
- Platform: n/a
- Operating System: macOS
Note: my Android/iOS package name is net.tribeez
(my package.json
name is tribeez
)
Issue Analytics
- State:
- Created 7 years ago
- Reactions:19
- Comments:16 (6 by maintainers)
Top Results From Across the Web
How do I remove local (untracked) files from the current Git ...
It just deleted my node_modules folder. Doing this would first stage all files except for the ignored ones, and then delete them by...
Read more >How to remove local untracked files from the current Git branch
Well, the short answer as per the Git Documents is git clean. “How to remove local untracked files from the current Git branch”...
Read more >non-js module files deprecated react - You.com | The AI ...
I'm trying to run my react app with https. An article I read said that in order to do so in Linux I...
Read more >How to Properly Remove Untracked Files With Git - CloudBees
In this post, learn how to remove untracked files with Git. We'll begin with a brief explanation followed by examples and best practices....
Read more >How to git clean untracked files example - TheServerSide.com
This article is on the 'git clean' command, which is used to delete untracked files from the local working tree.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is very much still happening to everyone who uses
react-native-git-upgrade
and uses a.gitignore
..env
files also disappear, which I’m not happy about…