Skip to content

Developers wiki: Pull requests

Kevin Woo edited this page Apr 8, 2019 · 9 revisions

Pull requests

mmg is an open source project so your contributions are welcome. You can help us to improve the mmg applications through:

  • bug fixes
  • features development.

The steps to contribute to the mmg project are detailed in the next paragraphs.

I/ Read carefully and agree the following paragraph

To see your work included in the project, please:

II/ Software contribution

To contribute to the mmg software:

    1. fork the project on GitHub and clone your fork:
git clone https://github.com/<username>/mmg
    1. checkout the develop branch and assign the original mmg repository to a remote named upstream:
git checkout develop  
git remote add upstream https://github.com/MmgTools/mmg
    1. get the last changes from branch develop of the upstream in your own develop branch:
git checkout develop  
git pull upstream develop
    1. create a new branch to develop your feature:
git checkout -b myFeature
    1. merge the upstream develop branch into your feature branch:
git merge develop
    1. if you want, you can push your feature branch up to your repository:
git push origin myfeature
    1. contribute to the code. Don't forget to regularly merge the upstream develop branch into your feature branch:
      git pull upstream develop to avoid painful merge after huge modifications;
    1. open a pull request with title and detailed description.