2 ms·
I've found it easy with python recently. - Go on github, find the repo - Fork the repo - git clone https://github.com/me/forked_repo https://github.com/me/fo
by kovek 9y ago
I've found it easy with python recently.
- Go on github, find the repo
- Fork the repo
- git clone https://github.com/me/forked_repo https://github.com/me/forked_repo
- cd into the repo, and 'git checkout -b me_myfix'
- write your change
- cd ..
- 'pip uninstall forked_repo' so that you can work with your fork's clone instead
- Sometimes, if the repo has a setup.py, some symbolic linking needs to be setup so we can easily do 'import forked_repo'
- use 'import forked_repo'
- later, you can do 'git push origin me_myfix' and submit a pull request from Github.
I think there is a better way but I did not think about this problem much. It would be nice if someone could outline how to go about this properly. And there's almost no chance I could do this with another language since I am not as comfortable with the building/packaging with other languages.
- pjscott 9y agoThat should mostly apply to other languages. Only the pip/import parts differ, and those generally have straightforward counterparts since most package management systems these days are pretty similar.
- UncleEntity 9y agoSometimes you don't even need to do a pull request if you have your fork on the same platform. A while back I needed py3k support in pybindgen so hacked it in and it magically got merged into the main branch. Surprisingly, as is -- I guess I can hack on the python good enough ;)