Why does git ignore these folders?

I added a Laravel app under Git so that I can click on Bitbucket. In the root folder, I launched git add -Aand clicked on the remote server. I checked that he did not send all the folders; for example, he did not add a folder vendor. How to make sure all subfolders are added? When I run git status, it says:

# On branch master
nothing to commit, working directory clean

Update

I ran git status --ignoreand found the following files:

stocktrack/app/storage/logs/laravel.log
stocktrack/app/storage/meta/services.json
stocktrack/app/storage/sessions/cdf664ccf42d040bc92d76418f736cc78e20d77a
stocktrack/app/storage/views/81774cd762e1fa0174ad42e0b0d53196
stocktrack/bootstrap/compiled.php
stocktrack/composer.lock
stocktrack/vendor/

In .gitignoreI added only .idea. Why did he ignore the rest?

+4
source share
3 answers

You can use git check-ignoreto determine if the path will be ignored with git.

, check-ignore -v (--verbose), , .


, .

bar/test/important
foo/a.tmp
foo/b

.gitignore .

bar/
foo/*.tmp

, important bar/test/ .

, .

, important.

$ git check-ignore --verbose bar/test/important
.gitignore:1:bar/       bar/test/important

, check-ignore , bar/ .gitignore 1 .

+9

git add --force <Specific Folder> .

+1

, .gitignore.

. .gitignore, , .

0
source

All Articles