gerrit服务器macOS使用步骤:
先在gerrit后台http://10.10.142.120:9000/gerrit/#/dashboard/self,添加自己的ssh密钥
git clonehttp://10.10.142.120:8083/gerrit/ReachCockpit/Honda23M/AppStore
首次提交步骤:
1. gitdir=$(git rev-parse --git-dir)
2. scp -p -P 29418 wchao@10.10.142.120:hooks/commit-msg ${gitdir}/hooks/
3. git commit --amend
4. git push origin master:refs/for/master
此后提交按照git的正常使用流程操作,
push使用 'git push origin master:refs/for/master’
PS:clone用户名密码不正确可以执行此生成密码操作
错误异常
! [remote rejected] master -> closed)
error: failed to push some refs to 'http://10.10.142.120:8083/gerrit/ReachCockpit/Honda23M/TsuSDK'
git rebase -i HEAD~4
git rebase --continue
1. 上传tag
gp origin poc_3.0:refs/tags/poc_3.0
2. 删除tag
gp origin :refs/tags/poc3.0