2

I want to share (and keep updated) some base code between my rails projects with git. How can i do?

1
  • The best description I have seen is this screencast. Commented Feb 25, 2009 at 9:06

2 Answers 2

5

You can use git submodules, for example like this

Sign up to request clarification or add additional context in comments.

Comments

0

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!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.