I have a git project P. Within my project P is a submodule Q that was cloned off a 3rd party library's master branch.
P
|
- src
- Vendor
|
- Q
I do not have permission to make push any changes to the 3rd party library's remote repo.
I made some fixes in Q
and I now want those to be pushed into the master
branch of my project P
so my team members can use them too.
Currently I am developing on my 'dev
' branch.
I tried the following steps from within P
:
cd Vendor/Q
git branch my-fixes
git checkout my-fixes
git add
git commit -m 'My fixes to 3rd Party Library Q'
cd ../..
git add Vendor/Q
git commit -m 'Changes/fixes made to submodule Q'
git push
However, this does not seem to solve my problem. Can someone help me out?
If you push project P, no one will be able to get the commit from step 6, because you do not have permission to make push any changes to the 3rd party library's remote repo.
Have you considered to create a repo to store your company's changes to Q, instead of registering the submodule to 3rd party's remote? So that you may save your changes to Q to your company's server.
Considering you will integrate the two repo (Q and your project) together, without having to push back any fix back to GitHub Q repo (since Q is no longer updated on GitHub), you could:
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