A friend of mine has written an irc bot, and has the code on github. I made a fork, and wrote a few plugins and pushed to my fork. The owner of the original repo moved the plugins folder to a submodule (I don't even really get that, I've never really used git) and fetching and merging failed, and I couldn't figure out what went wrong.
So I deleted my fork, and forked it all over again, but when I did git clone {my github fork}
I had an empty plugins folder. I'm not sure what I'm doing wrong, or what's the right way to fork a repo that has a submodule thing in it. :/
@manojlds answer below does grab the submodule and grab the stuff to put in the plugins directory, but if I try to add a file and push I can't because it's pointing at the original submodule. I've forked the submodule now too, I just don't know how to make my main repo point to my fork of the submodule instead of the upstream submodule.
You can run:
git submodule update --init --recursive
( or you can clone using the --recurse-submodules
option)
and the plugins folder will be populated. If you don't understand about submodules, read about them here: http://book.git-scm.com/5_submodules.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With