-1

Let's say I have a "javascript" directory. I git clone http:... a plugin inside that javascript directory.

Then, I git add .

And I finally git commit -am 'message'; and git push origin master

When I go to github.com, I see that the plugin is not there as a folder! Instead, there's a folder with an arrow to it, probably symbolizing that it's a link to another plugin.

How do I add stuff that I cloned into my OWN repository?

Edit: I just read about submodules, but they're a pain in the ass! How do I easily manage them?

user847495
  • 9,831
  • 17
  • 45
  • 48

1 Answers1

0

Another approach, rather than cloning a Git repo within a Git repo (which would mean dealing with a submodule declaration in order for the parent repo to reference the second inner repo), would be to merge the two repo: subtree merging.
That is interesting when the two repos are closely linked together (an evolution in one is likely to trigger an evolution in the other).

The various possibility to deal with two repos are presented in "How do you merge two git repositories?".

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250