Repository: incubator-mynewt-site Updated Branches: refs/heads/develop 37183d948 -> 777620961
updated PR and merge method documentation under FAQ Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/commit/bd5c25eb Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/tree/bd5c25eb Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/diff/bd5c25eb Branch: refs/heads/develop Commit: bd5c25eb965cac5854b3b5c43f7623728da71917 Parents: 37183d9 Author: aditihilbert <ad...@runtime.io> Authored: Fri May 5 16:10:31 2017 -0700 Committer: aditihilbert <ad...@runtime.io> Committed: Fri May 5 16:10:31 2017 -0700 ---------------------------------------------------------------------- docs/faq/answers.md | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/bd5c25eb/docs/faq/answers.md ---------------------------------------------------------------------- diff --git a/docs/faq/answers.md b/docs/faq/answers.md index b87d910..79edc38 100644 --- a/docs/faq/answers.md +++ b/docs/faq/answers.md @@ -26,30 +26,12 @@ If you are not a committer and you wish to work on it, someone who is on the com **You submit your proposed changes for your peers with committer status to review and merge.** -The "develop" branch on Mynewt's repository contains the most recent changes made by the community of developers. Contributions from you need to go into this branch. The essential steps to setting up your project space for working with the latest code from "develop" and make pull requests into "develop" to get your code added are the following: - - -**Step 1:** Create a fork of the entire Mynewt repository on github.com. -**Step 2:** Setup repository on your laptop to use code in âdevelopâ branch. You then create a new branch âmybranchâ using âgit checkout âbâ. You also add a remote handle named âforkâ that points to the github fork you created in Step 1. -``` $ newt new devproject $ cd devproject $ vi project.yml # change version to 0-dev for repository.apache-mynewt-core $ newt install $ cd repos/apache-mynewt-core $ git status On branch develop Your branch is up-to-date with 'origin/develop'. nothing to commit, working directory clean $ git checkout âb mybranch $ git remote -v origin https://github.com/apache/incubator-mynewt-core.git (fetch) - origin https://github.com/apache/incubator-mynewt-core.git (push) $ git remote add fork https://github.com/<user>/incubator-mynewt-core - $ git remote -v origin https://github.com/apache/incubator-mynewt-core.git (fetch) - origin https://github.com/apache/incubator-mynewt-core.git (push) fork https://github.com/<user>/incubator-mynewt-core (fetch) - fork https://github.com/<user>/incubator-mynewt-core (push) -```**Step 3:** Check you are in âmybranchâ. Write code. Stage and commit your changes(example shows adding all). -``` $ git checkout mybranch $ git add . $ git commit âm âyour message about your code changesâ -``` -**Step 4:** Always pull the latest from develop on Apache mirror to âmybranchâ before pushing any changes to remotes. If you see merge conflicts, resolve them first. -``` $ git pull --rebase origin develop -``` -**Step 5:** Push your changes to âmybranchâ branch on your github fork. If âmybranchâ does not exist yet on your github fork, the command automa;cally creates it. -``` $ git push fork mybranch -``` -**Step 6:** Generate a pull request from âmybranchâ in your fork to âdevelopâ in Mynewt using the "New pull request" button on github.com. - - -![Mynewt Dev Cycle](mynewt_dev_cycle.jpg) - +The process to submit a Pull Request on github.com is described on the [Confluence page for the project](https://cwiki.apache.org/confluence/display/MYNEWT/Contributing+to+Apache+Mynewt). + +### I am a committer in the project. Can I merge my own Pull Request into the git repository? + +Yes, but only if your Pull Request has been reviewed and approved by another committer in Apache Mynewt. +The process to merge a Pull Request is described on the [Confluence page for the project](https://cwiki.apache.org/confluence/display/MYNEWT/Merging+Pull+Requests). ### I would like to make some edits to the documentation. What do I do?