Created
July 17, 2015 04:07
-
-
Save kentarosasaki/ac03a0f0b32880294f95 to your computer and use it in GitHub Desktop.
OpenStackにコードをマージするまでの道のり ref: http://qiita.com/kentarosasaki/items/9e782215c7c4f3f1297e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo yum install -y git-review |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git clone https://github.com/openstack/openstack-manuals.git | |
$ cd openstack-manual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git config gitreview.scheme https | |
$ git config gitreview.port 443 | |
$ git config gitreview.username gerrit-test-user <= Gerritに登録されているusernameを入力 | |
$ git config user.name "Taro Yamada" <= Gerritに登録されているFull Nameを入力 | |
$ git config user.email "xxxxx@yyyyy.com" <= Gerritに登録されているアドレスを入力する |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git add --all | |
$ git commit --amend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git review | |
Password for 'https://gerrit-test-user@review.openstack.org:443': | |
remote: Resolving deltas: 100% (7/7) | |
remote: Processing changes: updated: 1, refs: 1, done | |
To https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git | |
* [new branch] HEAD -> refs/publish/master/bug/123456789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote add gerrit https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git review -s -v | |
2015-07-17 10:20:13.935741 Running: git log --color=never --oneline HEAD^1..HEAD | |
2015-07-17 10:20:13.938975 Running: git remote | |
2015-07-17 10:20:13.941349 Running: git branch -a --color=never | |
Setting up gerrit branch tracking for better rebasing | |
2015-07-17 10:20:13.943823 Running: git remote update gerrit | |
Fetching gerrit | |
From https://review.openstack.org:443/openstack/openstack-manuals | |
* [new branch] master -> gerrit/master | |
* [new branch] stable/juno -> gerrit/stable/juno | |
* [new branch] stable/kilo -> gerrit/stable/kilo | |
2015-07-17 10:20:16.200501 Running: git rev-parse --show-toplevel --git-dir | |
2015-07-17 10:20:16.203341 Running: git config --get remote.gerrit.url | |
2015-07-17 10:20:16.205546 Running: git config --get remote.gerrit.pushurl | |
Found origin Push URL: https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git | |
Fetching commit hook from: https://gerrit-test-user@review.openstack.org:443/tools/hooks/commit-msg | |
2015-07-17 10:20:16.208040 Running: git config --bool --get http.sslVerify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git checkout -b bug/123456789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git add --all | |
$ git commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Launchpadに登録されているBugのTitle | |
コミットメッセージを入れる | |
DocImpact <= 必要な場合入れる | |
Closes-Bug: #123456789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git review | |
Password for 'https://gerrit-test-user@review.openstack.org:443': <= Gerritの設定ページのHTTP Passwordの項目にあるパスワードを入力 | |
remote: Resolving deltas: 100% (4/4) | |
remote: Processing changes: new: 1, refs: 1, done | |
remote: | |
remote: New Changes: | |
remote: https://review.openstack.org/987654321 | |
remote: | |
To https://gerrit-test-user@review.openstack.org:443/openstack/openstack-manuals.git | |
* [new branch] HEAD -> refs/publish/master/bug/123456789 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenStack Infra (hudson-openstack) wrote 1 minute ago: Fix proposed to openstack-manuals (master) | |
Fix proposed to branch: master | |
Review: https://review.openstack.org/987654321 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment