Avinash Sivaraman
Avinash Sivaraman

Reputation: 77

Expo project can't be tracked by git inside github repository

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

Answers (2)

Csaba Szitar
Csaba Szitar

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

Lan Do
Lan Do

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

Related Questions