首页 > 技术文章 > openstack向社区提交代码及bug fix

double12gzh 2017-03-02 09:06 原文

1. git clone https://git.openstack.org/openstack/<projectname>.git
2. cd <projectname> git review -s
3. git config --global gitreview.username yourgerritusername
4. git remote update git checkout master git pull --ff-only origin master
5. git checkout -b TOPIC-BRANCH
6. Committing a Change
If your changes addresses a blueprint or a bug, be sure to mention them in the commit message using the following syntax:
Implements: blueprint BLUEPRINTCloses-Bug: ####### (Partial-Bug or Related-Bug are options)
For example:
Adds keystone support...Long multiline description of the change...Implements: blueprint authenticationCloses-Bug: #123456Change-Id: I4946a16d27f712ae2adf8441ce78e6c0bb0bb657

7. git commit -a
8. git review 提交review

9. update a change
git commit -a --amend git review

https://docs.openstack.org/infra/manual/developers.html#squashing-changes
http://note.youdao.com/noteshare?id=595c9e2900bf90d5726c05993c23210b&sub=995FCE64DE73480E9816FE7C6AC6A479

推荐阅读