I keep the sub modules of a project in different repositories.
I host the sub modules in the Modules folder within the main project.
Submodules are ignored in the root project's .gitignore` file.
It's okay, but I want to create links to submodules on github.
I tried using Submodules. However, if I use submodules, I guess the folder contents (Modules/..
) must be empty.
How can I do that?
My local workspace:
RootFolder << user/RootFolder
├── .git
├── README.md
├── .gitignore
├── composer.json
└── Modules
├── Module1 << user/Module1
│ ├── .git
│ ├── README.md
│ └── composer.json
└── Module2 << user/Module2
├── .git
├── README.md
└── composer.json
RootFolder/.gitignore
content:
/Modules
It looks like this on Github. (As it's supposed to be)
user/RootFolder
├── README.md
└── composer.json
However, I want to create links with the same name as the ignored folders:
user/RootFolder
├── .gitignore
├── Modules
│ ├── Module1 >> Redirect to https://github.com/user/Module1 (How can I do that?)
│ └── Module2 >> Redirect to https://github.com/user/Module2 (How can I do that?)
├── README.md
└── composer.json
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…