I created a react app on an express server and it seems that none of the client folder is being pushed to github correctly, I have no idea why it wont add when I run git add . and push it.
Asked
Active
Viewed 352 times
1
-
Check your .gitignore file – Kid Jul 03 '20 at 01:21
-
I dont have a .gitignore file in the root, the one in the client folder looks fine. is there something I should be looking for? – dawson-hamilton Jul 03 '20 at 01:27
-
Why dont you post your folder structure? – Kid Jul 03 '20 at 11:41
1 Answers
0
Check if the client folder has a .git subfolder in it: that would make it a nested repository, in which case you would only push a gitlink (special entry in your index), instead of the folder content.
If you don't need the history of that client folder (just its file), you could simply rename or delete that nested .git
folder, and then the add/commit/push would actually include the client folder files.

VonC
- 1,262,500
- 529
- 4,410
- 5,250