$ git add macaw/*
fatal: Pathspec 'macaw/composer.json' is in submodule 'vendor/noahbuscher/macaw'
$ cd macaw/
$ git add composer.json
fatal: in unpopulated submodule 'vendor/noahbuscher/macaw'
$ git rm --cached --help
usage: git rm [<options>] [--] <file>...
-n, --dry-run dry run
-q, --quiet do not list removed files
--cached only remove from the index
-f, --force override the up-to-date check
-r allow recursive removal
--ignore-unmatch exit with a zero status even if nothing matched
$ git rm -rf --cached macaw/
rm 'vendor/noahbuscher/macaw'
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: macaw
$ git add macaw/
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
deleted: macaw
new file: macaw/.gitignore
new file: macaw/LICENSE.md
new file: macaw/Macaw.php
new file: macaw/README.md
new file: macaw/composer.json
new file: macaw/composer.lock
new file: macaw/config/.htaccess
new file: macaw/config/Web.config
new file: macaw/config/nginx.conf
$ git commit -am 'commit macaw'
[master 3d8607e] commit macaw
10 files changed, 1709 insertions(+), 1 deletion(-)
delete mode 160000 vendor/noahbuscher/macaw
create mode 100644 vendor/noahbuscher/macaw/.gitignore
create mode 100644 vendor/noahbuscher/macaw/LICENSE.md
create mode 100644 vendor/noahbuscher/macaw/Macaw.php
create mode 100644 vendor/noahbuscher/macaw/README.md
create mode 100644 vendor/noahbuscher/macaw/composer.json
create mode 100644 vendor/noahbuscher/macaw/composer.lock
create mode 100644 vendor/noahbuscher/macaw/config/.htaccess
create mode 100644 vendor/noahbuscher/macaw/config/Web.config
create mode 100644 vendor/noahbuscher/macaw/config/nginx.conf
$ git push
Counting objects: 15, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (15/15), 56.09 KiB | 416.00 KiB/s, done.
Total 15 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:pangxp/composer-study.git
421b4e1..3d8607e master -> master