vendor/noahbuscher/macaw目录文件提交不到git上

$ 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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值