登录https://review.openstack.org/#/settings/http-password,生成password,如果password里面有反斜杠,然后再点击直到没有斜杠为止。
有斜杠的在使用时会报错:Could not resolve host: **** error: 不能获取 gerrit
>git clone https://github.com/openstack/python-cinderclient.git
>cd keystone
>git remote -v
origin https://github.com/openstack/python-cinderclient.git (fetch)
origin https://github.com/openstack/python-cinderclient.git (push)
>git remote add gerrit https://username:password@review.openstack.org/openstack/python-cinderclient.git(没有gerrit)
>git remote set-url gerrit https://username:password@review.openstack.org/openstack/python-cinderclient.git(有gerrit)
>git remote -v
gerrit https://username:password@review.openstack.org/openstack/python-cinderclient.git (fetch)
gerrit https://username:password@review.openstack.org/openstack/python-cinderclient.git (push)
origin https://github.com/openstack/python-cinderclient.git (fetch)
origin https://github.com/openstack/python-cinderclient.git (push)