>> Is it possible to fork an external git repo into my private repo as a >> submodule and have it be useful? > > Can you be more specific? I don't understand how forking is involved.
I meant that I cloned a git repo that's not hosted by GitHub. For example: git://gerf.org/itsalltext.git > So you have two private projects. One is the main project, the other > is a submodule of that project. >> 1. Cloned an external repo and added it to my local repo as a >> submodule. When I pushed, an unclickable folder showing the submodule >> appeared on GitHub. > > So far so good. > >> 2. Added my private url as remote. Pushed, but no change. > > Where did you add your private url? Which private url did you add? I moved into the submodule directory and ran: git remote add push [email protected]:formido/snippets.git >> 3. Made a change to the submodule and pushed. That seemed to work, but >> when I pulled, then submodule updated from another repo, it failed >> with: > > At this point, I think what you're saying is that you added the > submodule for a repository you don't own, forked the repository, added > your fork as a remote in the submodule's directory, then pushed there. > When you tried to update the submodule, it failed. So: 1. I have a clone of one of my private GitHub repo (one that I use as a scratch pad) on my local computer. Let's call it 'Scratch'. 2. I cloned the git (but non-GitHub) repo for the firefox addon 'itsalltext' directly into my local clone of Scratch: 3. I added the itsalltext clone as a submodule. 4. I moved into the itsalltext clone and added my private GitHub url as a remote. In retrospect, I don't know what UI I was expecting this would have once it was set up. It probably doesn't make sense. At any rate, the bugs I intended to patch were fixed in yesterday's new release of the add-on, so I don't need to bother with it. Also, I probably just should have seen if the author thought it was ok to clone the project to a public repo. Then he'd be able to pull from it easily enough. Thanks, Michael --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GitHub" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/github?hl=en -~----------~----~----~----~------~----~------~--~---
