如何提交自己写的Test Case或者将修改的code提交到Oracle Git Hub上:
path to your git project dictionary.
<1> git pull //获得最新的代码
<2> write new test cases or update your code //基于新得到的代码,添加你的case或者修改代码
因为你不能直接在master branch上修改代码,所以你需要创建一个你自己的新的branch
<3> git branch [branch_name_newcode]
<4> git checkout [branch_name_newcode] //到自己的本地branch上
<3>,<4>还可以合起来写 git checkout -b [branch_name_newcode] // -b: a new branch will be created.
<5> git add [your_new_testcase_or_newcode] //告诉git需要将这个新的case保存到版本库中,git暂存这个文件
<6> git commit -m “some comments”//提交新的case到本地的branch
<7> git push origin [branch_name_newcode] // push your local branch to remote as a remote branch instead.
<8> login Oracle GIt Hub and path to your project.
<9> click on the 'merge-requests' tab and click add new merge request.
<10> select your committed remote branch to remote master branch, click 'Submit' // 将你的远程branch merge 到远程master上面。