Reputation: 571
I want to share (and keep updated) some base code between my rails projects with git. How can i do?
Upvotes: 2
Views: 631
Reputation: 236
Do not use submodules. They are ugly, hard to understand and to maintain. Much better is to use subtrees.
Git subtree is a part of GIT since 1.7.11 and I wrote an article about sharing code between Rails applications: http://igor-alexandrov.github.com/blog/2013/03/28/using-git-subtree-to-share-code-between-rails-applications/
In short: yes git-subtree works and works great!
Upvotes: 0