Get git reposity:
git clone git://server/project_name
Commit to Gerrit:
git diff
[git add xxx]
git commit -a
(modify .git/config)
[remote "review"]
url = ssh://user@server:port/project_name
push = HEAD:refs/for/master
receivepack = git receive-pack --reviewer='xxx' --reviewer='ooo'
git push reivew
Apply patch to Gerrit
git add xxx
git commit --amend
git push ssh://user@server:port/project_name HEAD:refs/changes/Change_id
沒有留言:
張貼留言