Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why didn't the client folder from my project get uploaded on gitHub?

I wanted to upload a project on github repository so I can send it to my instructor and it’s my first time. All the folders’ content got uploaded except client folder and its icon looks different. Why did that happen?

I used these commands in the terminal

$ git add .
$ git commit -m "First commit"
$ git remote add origin remote repository URL
$ git remote -v
$ git push -u origin master

Edit: my client folder is a reactjs app

like image 344
FaridaElOraby Avatar asked Mar 02 '23 12:03

FaridaElOraby


2 Answers

You would have to be a bit more specific.
One possible answer: There is a .gitignore file (hidden file) that prevents the client folder from being pushed.
Another: You simply didn't stage the client folder. Try git add ./client and then commit and push again.

like image 154
gian.gyger Avatar answered Mar 05 '23 15:03

gian.gyger


In my case, Gatsby had created a .git folder in client which prevented it from being added to the repo.

rm -rf client/.git

like image 33
user3152459 Avatar answered Mar 05 '23 15:03

user3152459