Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got two repositories set up for a class I teach, one outward-facing with demo and example code, and one to track changes I make to the class manual. I've written the manual in LaTeX Listings package, so I can keep example code in a separate (complete) file. My first idea for keeping the code in both repositories is a symlink to a common directory, but I've been reading that symlinks are apt to cause problems with Git (only tracking the links, not what they point to). Is there any good way to do this efficiently and automatically?

share|improve this question

What about making the third repository,then submoduling it from old ones?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.