1
0
Fork 0

Very tiny but necessary edit

To delete `.git` repos of submodules, `rm -rf vendor/**/.git` doesn't work, but `rm -rf vendor/*/*/.git` does
pull/3246/head
Richard K Miller 2014-08-28 21:49:57 -06:00
parent 1e27ff5e22
commit 553288a384
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ If you really feel like you must do this, you have a few options:
2. Use --prefer-dist or set `preferred-install` to `dist` in your 2. Use --prefer-dist or set `preferred-install` to `dist` in your
[config](../04-schema.md#config). [config](../04-schema.md#config).
3. Remove the `.git` directory of every dependency after the installation, then 3. Remove the `.git` directory of every dependency after the installation, then
you can add them to your git repo. You can do that with `rm -rf vendor/**/.git` you can add them to your git repo. You can do that with `rm -rf vendor/*/*/.git`
but this means you will have to delete those dependencies from disk before but this means you will have to delete those dependencies from disk before
running composer update. running composer update.
4. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor `.git` folders. 4. Add a .gitignore rule (`vendor/.git`) to ignore all the vendor `.git` folders.