git clone https://git-wip-us.apache.org/repos/asf/incubator-quickstep.git quickstepcd quickstepQUICKSTEP-101.git checkout mastergit checkout -b quickstep-101git add some-changed-or-new-filesCheck if your code confirms to the code guidelines by running the following command from the root of the quickstep source directory: python third_party/cpplint/lint_everything.py
python validate_cmakelists.pypython cyclic_dependency.pyparser/genfiles.sh and check the generated files into the directory parser/preprocessed.git commit -m "QUICKSTEP-101: Added My Awesome Feature."git push origin quickstep-101Sometimes, there may be code review comments after a PR has been opened. Address these comments and then do the following:
git add more-changed-or-new-filesgit commit -m "Addressed Review Comments."Finally, once the PR is ready to be merged (i.e. it has passed all the tests and the python validation scripts as described above), we need to squash all the commits into one commit. We cherry pick the first commit, and squash all the rest as follows:
git rebase -i origin/masterpick QUICKSTEP-101: Added My Awesome Feature.pick Addressed Review Comments.s Addressed Review Comments.git log.
git push origin quickstep-101 -fUse the GitHub ASF mirror repo: https://github.com/apache/incubator-quickstep, and set the title for the PR to match the title of the JIRA ticket.
In this case, QUICKSTEP-101: Added My Awesome Feature.
To merge a PR, go through the following steps:
quickstep-101.
git fetch originsome-contributor is the github id of the contributor, and in the Quickstep github PR, the PR is assumed to have a tag like some-contributor:quickstep-101git remote add some-contributor https://github.com/some-contributor/incubator-quickstep.gitgit remote -vgit fetch some-contributor quickstep-101master branch, with a well-written commit message:git checkout quickstep-101git rebase -i origin/mastergit push origin quickstep-101 -fgit checkout mastergit rebase -i origin/quickstep-101git rebase -i some-contributor/quickstep-101git logMerge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-quickstep", we should abort the merge; otherwise we will mess up the master history.git push origin masterasfgit to merge the PR in GitHub ASF mirror repo. git push origin --delete quickstep-101asfgit to delete the merged branch.