Possible Duplicate:
Can you share a file and it's history between two git repositories?
I have multiple rails projects (in one git), which have some common CSSs, layouts and helpers. My first solution to share those files between the projects was to set up some symlinks, but I'm not totally convinced this is the way to go. Is there some nicer solution, or are symlinks maybe fine after all?
You can use git submodules to split out the common parts.
Check this out: http://railscasts.com/episodes/96-git-on-rails Or: http://git-scm.com/docs/git-submodule
Yes, symlinks is a good way to go, i would probably do that as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With