php - Modifying Symfony composer vendors and using them until their PR is merged -


i want create pr github repo used vendor in symfony project until merge done. let's suppose done in future , not rejected. repo not pulled using git, installed using composer.

what did:

  1. forked original repo
  2. created branch 'keepmessages'
  3. edited composer.json with:
  "repositories": [         {             "type": "vcs",             "url": "https://github.com/clytemnestra/jmstranslationbundle"         }     ],    "require": {              ....           "jms/translation-bundle": "dev-keepmessages",          ....     }, 
  1. composer update

now, replaced package in vendor own forked project's branch. want edit files, commit them, , when i'm ready to, pr original repository.

how can that?

i've tried pushing changes own repo first, i'm getting following:

permission denied (publickey). fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

this repository downloaded composer, might problem. if i'd pull myself work, want make work composter-downloaded repositories because want test them on working projects.

first, have setup remote of repository want push into.
actually, want make changes in fork only, go in root directory of package (e.g. vendor/package/name/) , run :

git remote add origin https://github.com/clytemnestra/jmstranslationbundle 

then, make changes , push when done.

when want make pr, go in repository (or in original) , hit "create pull request".
automatically propose compare own branch 1 of original repository.
select branches , submit pr.
try clear possible reason of pr, , if there issues related to, reference them in message of pr.

see creating pull requests

note : make clean pull request, keep changes in 1 commit.
this, see git rebase , squashing

note 2: commit changes make on files corresponding bug or feature working on. other files should intact, if test suites doesn't pass, don't have fix them.

edit

if got error origin remote exists , run following :

git remote set-url origin https://github.com/clytemnestra/jmstranslationbundle 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -