@Tuxdude I canβt agree with you at all with "... then you are doing something wrong." As an example, if you need to place a media folder on another drive on a web server or even in NFS, you will have to set it out of version control. Thus, the contents inside the folder with symbolic media will not be accessible through version control, as you explained. But this is a scenario where you should do it. And this is really a pain in b ... My scenario is even more complicated (I will not go into details), what I'm really looking for is to add subfolders of the symbolic folder to version control, but not its contents, but I need to have an option where I can ignore any changes to the type of subfolder itself in git. For example, the basic structure:
- app / media / bla
- application / media / blubb
I need these folders in git version, without its contents.
On a web server (same version control), these folders look like this (symbolic links):
- app / media / bla => somewhere else
- app / media / blubb => somewhere completely again
Dev should have in its local environment only the initial structure described in the first stage (without symbolic links). But the web server has symbolic links to different NFS systems.
If anyone has an idea how to solve this, I would really appreciate it, because I have not yet found a solution for this.
The only way I'm doing this right now is to create a constructor that creates the correct / different structure for local environments, and media servers and subfolders are currently completely ignored by gitignore. But it can be difficult or difficult to maintain.
ioCron May 25 '16 at 12:29 a.m. 2016-05-25 00:29
source share