I want to create a PR to a Github repo that is used as a vendor in a Symfony project until the merge is done. Let's suppose that it will be done in the future and not get rejected. The repo is not pulled using git, is installed using composer.
What I did:
- forked the original repo
- created branch 'keepmessages'
- edited composer.json with:
"repositories": [ { "type": "vcs", "url": "https://github.com/clytemnestra/JMSTranslationBundle" } ], "require": { .... "jms/translation-bundle": "dev-keepmessages", .... },
- composer update
Now, this replaced the package in the vendor with my own forked project's branch. I want to edit some files, commit them, and when I'm ready to, PR to the original repository.
How can I do that?
I've tried pushing some changes to my own repo first, but I'm getting the following:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
This is the repository downloaded with composer, so that might be the problem. If I'd pull it myself it would most likely work, but I want to make this work with composter-downloaded repositories because I want to test them on working projects.