Hello!

I'm working on some rails code. I build a plugin (subdirectory) for a
project tracked in git (using my own remote repository). The code is
all in the Project repository. But now, I realized I need the plugin
in other projects and so now I want to make it into a submodule.

I understand the basics of submodules and even use a lot of Rails
plugins as submodules via github, but I don't quite get the best way
to turn an existing directory of code into a submodule? If I have:

~/project/   => my rails project
and...
~/project/vendor/plugins/foo/   => my plugin that I want to turn into
a submodule

and I've got "project" referenced to: mygitrepo.myhost.com:/var/git/
project.git

what comes next?

I appreciate any steps or URLs to docs/blogs that would help. Thanks!

-Danimal

--

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.


Reply via email to