Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github - How to fork inside a repository (Into an submodule)

I have a repository, let's call "School's Projects".
My friend have a repository, let's call "Foo Project".
I've created a submodule inside my "School's Projects" with "Foo Project".
The thing is I want to edit "Foo Project" and create pull requests from it.
How can I do that?

like image 774
Igorzovisk Avatar asked Nov 16 '25 22:11

Igorzovisk


1 Answers

You will need to fork the "Foo Project" repo into your github account firstly as I presume you don't have write access to the original "Foo Project" repo on github.

As submodules work exactly the same as any other git repo simply go into this directory and add a new remote for your own fork of "Foo Project". Do your edits, commit and push to your fork remote.

Then goto github and goto your fork and then look for pull request, instructions are on github so I wont repeat.

like image 58
Phil Cook Avatar answered Nov 18 '25 11:11

Phil Cook



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!