Git not download all my directories

I'm not so good with git. I just installed the existing directory for github (done git add .). but on github web I can see that some of my directories and subdirectories are not listed there. If I run git commit -am "message"on my local machine, I get

# On branch master
nothing to commit (working directory clean)

I'm afraid!! What to do

- EDIT - (retelling of the story)

The catalog was not empty. Initially, there were 100 files, directories in other directories. First I did git add. and then git commit -am "message", and then I clicked on git push origin master, and now I see not all my directories on github.com. So I ran git commit -am "message" on my local machine. and then I got the result mentioned in my Question

+3
source share
3 answers

git -am will not add directories or new files. You need to usegit add

+4
source

You need git addyour directories.

0
source

You should read the documentation.

First, commit is a local operation that does not affect the remote repository. If you commit, nothing will appear on github. A pushis what sends your commits to the remote repository.

Secondly, you cannot add empty directories to your project. The command addworks for files, and it will automatically add the directories in which the file is located (if they do not already exist).

0
source

Source: https://habr.com/ru/post/1782012/


All Articles