Stepan,
You're essentially looking at replication between your foo
and bar
repositories.
I'm not sure what system you're running, but there are a plethora of different options available. Windows has many, such as File Replication Service and Peer software. If you're on a linux/mac osx system, the fun way of doing this would definitely be through using IFTTT with github. Essentially all you have to do is create a trigger with IFTTT pointing your foo
repository, looking out for changes, and then pull in the new changes into your bar
repository. The IFTTT blog on GitHub channels has so many cool demonstrations to get you started.
Some interesting replication services built on top of IFTTT include a Dropbox <-> Google Drive
, a Dropbox <-> Box
, and a Dropbox <-> OneDrive
example. All of these show you how the basics of triggering work and how you can update your html file once the other README.md file has been modified.
Also note, with linux-kernal based systems, I created something very similar to what you're trying to achieve using rsync
. Also note, there is also a way you can work with symlinks and git in order to just point to the same file, and have a script massage the README.md file contents into your html file.
Please let me know if you have any questions!