1。获取帐号与密码
2。设置邮箱与添加密钥
3。git 代码
git clone
4.下载commit-msg并设置
scp -P post -p url:/hooks/commit-msg
cp commit-msg githome/hooks (在.git文件夹下)
chmod +x ../commit-msg
5.git push
gerrit 不允许直接push到分支上,因此 git push origin HEAD:refs/for/brname
6.git push 不上去
git reset --hard +merge 记录的前一个提交id(不建议使用)
git stash ;git pull ;git pop
或者checkout(暂时)