4

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?

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

2 Comments

No way to do that without forking the repo to my github?
You can if you have access to the original repo to create branches but this is usually down to the owner of that repo giving you access. This has been covered in another question stackoverflow.com/questions/14821583/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.