Suppose that one is involved in a Github-hosted project, he start his work by firstly forking the repository from its original place, and then clone the forked repository to the local machine and commit the patches back to this new repository under his own Github acccout. Now, the project wants its contributors to commit their patches to the main repository as different branches.
How to achieve it? Any advice would be appreciated.
Just add all the contributors as—well—contributors to the GitHub project. Then, each developer can work on local branches, and just need to push to the properly named branches when pushing…
git checkout -b poke-some-feature
# do work
git push origin poke-some-feature
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.