I did git add . in root directory, after that I did
git commit -m "abc"
itd…
after that, in my repo I did not find directories like /src /lib etc…
What have I done wrong?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Git is only tracking files. So if the folders
src/andlib/are empty, then they won’t be added to the repo.If you want to track them anyway, what I usually do is adding an empty file called
.keep. You can also use a.gitignorefile for folders containing cache data or generated files you don’t want to track but for which you want to keep the directory in the repo.Also, the
git addflag to add every change in you repo isgit add -A. This will stage every change (deleted, added and changed files).