scp root@10.92.244.14:/etc/apt/sources.list /etc/apt/ 密码root
sudo apt-get install git-review 
	git config globaluser.email shen.junjie2@zte.com.cn
        git config globaluser.name shenjunjie10067807
        git config globalgitreview.user 10067807
        git config globalgitreview.email shen.junjie2@zte.com.cn
	git remote add gerrit ssh://10067807@gerrit.zte.com.cn:29418/QA/ACTEST.git
        git remote add gerrit ssh://10067807@gerrit.zte.com.cn:29418/TECS_Director/Uniportal.git
        (you can  fetch  name gitconfig -l)
如果你输入错了 可以用 git config --unset remote.gerrit.url 把错误的变量清理掉
git config --global --replace-all user.name shenjunjie10067807
git config --global --replace-all user.email shen.junjie2@zte.com.cn
git config --global -l
git config color.ui true
这个也要替换掉
原文:http://www.cnblogs.com/sjj1022/p/8000399.html