Reputation: 77
We are trying to initialize an expo project, however, our folder is recognized as a file by git and thus we are having commit errors. Our project structure is as follows
Root(recognized by git)>
ExpoProject(tracked by git but wont be commited)>
README.txt
Upvotes: 0
Views: 1512
Reputation: 201
Run rm -rf .git
inside the expo folder.
Expo adds a .git file to the project folder 'so you do not have to' and that's what causes the problem.
Upvotes: 0
Reputation: 150
The issue you're having likely has to do with initializing your expo project inside of an existing git repository, which means that it is being tracked as a sub-repository (you don't want this). Try doing expo init 'project name' and then committing that to github.
Upvotes: 3