I'm using Github Desktop and tried pushing a new project into a React_Native repository, however when I try committing the code I'm prompted with "cannot add to the index - missing --add option?", I noticed that this problem occurs after I run "expo init client" to initiate my program. Any help is greatly appreciated.
CodePudding user response:
Look at the first error first, that's likely what's causing the other ones. It's saying that that directory (John_Deere/client/
) was not found. That path probably doesn't exist any morel maybe you moved some folders around or something? Try adjusting the expected path and see if that works.
CodePudding user response:
In my case (same error), i had php container running, with project folder connected as volume to my local storage. Previously I created git repo inside this project folder and this action left some hidden files inside. In my case even 'empty' folder resulted in this error occuring (as i presume due to hidden files still being present). Still not 100% sure what did the trick for me but my guess is on deleting hidden '.git' file (in my case from container cli)