Please consider the following project:
parent
|
|-- .gitignore
|
|-- .git
|
`--legacy
|
|-- .gitignore
|
|-- .git
|
`-- plugins
|-- forum
| |
| `-- .git
|
|-- chat
| |
| `-- .git
|
`--editor
|
`-- .git
Currently, parent project ignores legacy project ( /legacy/ in .gitignore ), and legacy ignores the plugins directory ( /plugins/ in .gitignore ).
From now on, I need git
of the parent to handle chat and editor plugins. However the legacy project shouldn't be modified. I've tried adding the following entries in .gitignore of parent :
/legacy/*
!/legacy/plugins/
/legacy/plugins/*
!/legacy/plugins/chat/
I can't see chat from parent directory, so it doesn't work.
What're my options ?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.