{"thread":{"id":"46717","subject":"How to include references to subfolders","startedAt":"2017-09-07T07:19:15Z","lastAt":"2017-09-07T07:19:15Z","messageCount":1,"participants":["Norike"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"327692","messageId":"d15333d0-d9eb-a106-592b-47635fd1cb66@gmail.com","threadId":"46717","inReplyTo":null,"subject":"How to include references to subfolders","fromName":"Norike","fromEmail":"norike@gmail.com","sentAt":"2017-09-07T07:19:01Z","receivedAt":"2017-09-07T07:19:15Z","isPatch":false,"sender":{"key":"norike@gmail.com","avatar":null},"body":"Hello,\n\nI've been searching what's the best way to include a reference to a \nsubfolder/subdirectory from a (secondary) remote repo into a subfolder \nof my (primary) repo.\n\nHere I found some approaches:\nhttps://stackoverflow.com/a/30386041/509369\n\nWhere the first 3 options don't seem to support sending changes back to \nthe mainstream; and the 4rth is replicating the whole repo.\n\nIdeally:\n- The reference is stored somewhere in the (primary) repo so when \nsomeone clones it, the referenced folder (from the secondary repo) is \nalso cloned.\n- You can pull changes from the remote repo into the subfolder of your repo.\n- You can make changes to the subfolder directly from your (primary) \nrepo, and push them to the remote repo (of course depending on the \nprivileges of the remote repo).\n- Allow multiple remote subfolders.\n\nExtra: it could be more complex, but what about single remote files?\n\nI'm not sure if this is possible with the current set of git tools, if \nit can be added in a future or if it's just a no-sense question.\n\nThanks in advance!\n\n-- \nSalut,\nYeray\n\n"}]}