Сильно не бейте, Git знаю плохо, это мой первый проект с ним.
Голову себе сломал, почему Git добавляет в репозиторий backend (на Laravel 5.4), но не добавляет frontend (на Angular 5.2).
Структура проекта такая:
drwxrwxr-x 6 noname noname 4096 мар 20 2018 ./
drwxrwxr-x 11 noname www-data 4096 ноя 15 21:57 ../
drwxrwxr-x 14 noname noname 4096 мар 14 2018 backend/
drwxrwxr-x 5 noname noname 4096 авг 15 21:50 frontend/
drwxrwxr-x 8 noname noname 4096 ноя 27 16:38 .git/
drwxrwxr-x 3 noname noname 4096 окт 31 14:26 .idea/
Перепробовал разное:
git add .
git add . —force
git add frontend
git add frontend/*
git add —all
git add :/
...однако папка frontend, в отличие от backend, игнорируется абсолютно.
Gitignore имеется только в дире backend'а:
./backend/vendor/sebastian/global-state/.gitignore
./backend/vendor/sebastian/object-enumerator/.gitignore
./backend/vendor/sebastian/comparator/.gitignore
./backend/vendor/sebastian/exporter/.gitignore
./backend/vendor/sebastian/diff/.gitignore
./backend/vendor/sebastian/environment/.gitignore
./backend/vendor/sebastian/recursion-context/.gitignore
./backend/vendor/sebastian/resource-operations/.gitignore
./backend/vendor/sebastian/code-unit-reverse-lookup/.gitignore
./backend/vendor/sebastian/version/.gitignore
./backend/vendor/dnoegel/php-xdg-base-dir/.gitignore
./backend/vendor/nikic/php-parser/.gitignore
./backend/vendor/jakub-onderka/php-console-highlighter/.gitignore
./backend/vendor/jakub-onderka/php-console-color/.gitignore
./backend/vendor/symfony/routing/.gitignore
./backend/vendor/symfony/yaml/.gitignore
./backend/vendor/symfony/var-dumper/.gitignore
./backend/vendor/symfony/translation/.gitignore
./backend/vendor/symfony/console/.gitignore
./backend/vendor/symfony/debug/.gitignore
./backend/vendor/symfony/finder/.gitignore
./backend/vendor/symfony/process/.gitignore
./backend/vendor/symfony/event-dispatcher/.gitignore
./backend/vendor/symfony/http-foundation/.gitignore
./backend/vendor/symfony/css-selector/.gitignore
./backend/vendor/symfony/http-kernel/.gitignore
./backend/vendor/tymon/jwt-auth/.gitignore
./backend/vendor/phpunit/php-code-coverage/.gitignore
./backend/vendor/phpunit/php-token-stream/.gitignore
./backend/vendor/phpunit/php-file-iterator/.gitignore
./backend/vendor/phpunit/phpunit/.gitignore
./backend/vendor/phpunit/php-text-template/.gitignore
./backend/vendor/phpunit/phpunit-mock-objects/.gitignore
./backend/vendor/phpunit/php-timer/.gitignore
./backend/vendor/myclabs/deep-copy/.gitignore
./backend/vendor/doctrine/instantiator/.gitignore
./backend/vendor/mockery/mockery/docs/.gitignore
./backend/vendor/mockery/mockery/.gitignore
./backend/vendor/namshi/jose/.gitignore
./backend/vendor/hamcrest/hamcrest-php/.gitignore
./backend/vendor/fzaninotto/faker/.gitignore
./backend/vendor/psr/log/.gitignore
./backend/vendor/swiftmailer/swiftmailer/.gitignore
./backend/vendor/psy/psysh/.gitignore
./backend/bootstrap/cache/.gitignore
./backend/database/.gitignore
./backend/storage/logs/.gitignore
./backend/storage/framework/cache/.gitignore
./backend/storage/framework/.gitignore
./backend/storage/framework/views/.gitignore
./backend/storage/framework/sessions/.gitignore
./backend/storage/framework/testing/.gitignore
./backend/storage/app/public/.gitignore
./backend/storage/app/.gitignore
Frontend имеет стандартную для Ангуляра структуру:
drwxrwxr-x 5 noname noname 4096 авг 15 21:50 ./
drwxrwxr-x 6 noname noname 4096 мар 20 2018 ../
-rw-rw-r-- 1 noname noname 1243 мар 15 2018 .angular-cli.json
drwxrwxr-x 2 noname noname 4096 мар 15 2018 e2e/
-rw-rw-r-- 1 noname noname 245 мар 15 2018 .editorconfig
-rw-rw-r-- 1 noname noname 923 мар 15 2018 karma.conf.js
drwxrwxr-x 890 noname noname 122880 мар 15 2018 node_modules/
-rw-rw-r-- 1 noname noname 1293 мар 15 2018 package.json
-rw-rw-r-- 1 noname noname 423951 мар 15 2018 package-lock.json
-rw-rw-r-- 1 noname noname 722 мар 15 2018 protractor.conf.js
-rw-rw-r-- 1 noname noname 1024 мар 15 2018 README.md
drwxrwxr-x 5 noname noname 4096 мар 15 2018 src/
-rw-rw-r-- 1 noname noname 363 мар 15 2018 tsconfig.json
-rw-rw-r-- 1 noname noname 3012 мар 15 2018 tslint.json
В индексе есть только сама папка Frontend, а вот содержимого нету...
noname@noname-desktop:~/projects/dev_prop$ git ls-files
backend/app/Console/Commands/Moderated.php
backend/app/Console/Kernel.php
...
frontend
Добавлю, что раньше в папке Frontend был свой .git, я его снес, т.к. именно это могло мешать появлению папки Frontend в репозитории.
Подскажите в чем может быть дело?