码迷,mamicode.com
首页 > 其他好文 > 详细

Gerrit(1): Manage Projects

时间:2017-05-03 22:53:27      阅读:225      评论:0      收藏:0      [点我收藏+]

标签:-o   font   active   port   ges   roo   hid   tor   state   

# Connect To Gerrit Server

  • ssh -p 29418 gerritRoot@192.168.0.254 

#Create Branch By SSH 

  • ssh -p 29418 review.example.com gerrit create-branch myproject newbranch master

# Get Command Help

  • ssh review gerrit --help

# Clone Git Repo

  • git clone ssh://192.168.0.254:29418/xxx.git

# Auto Deal With Commit-ID

  • scp -p -P 29418 gerritRoot@192.168.0.254:hooks/commit-msg .git/hooks/
  • chmod u+x .git/hooks/commit-msg

# Commit Changes

  • git commit
  • git push origin HEAD:refs/for/<branch>

# Continue An Failed Commit

  • git commit --amend

#Push with bypassing Code Review

  • git commit
  • git push origin HEAD:refs/heads/master

#Import an existing history into a Gerrit project

  • push it directly to refs/heads/<branch> 

#Repo State

  • Active / Read Only / Hidden

# Use Postgresql

# Create a user for the web application within PostgreSQL

# Assign it a password

# Create a database to store the metadata

# Grant the user full rights on the newly created database

  • createuser --username=postgres -RDIElPS gerrit2
  • createdb --username=postgres -E UTF-8 -O gerrit2 reviewdb

Gerrit(1): Manage Projects

标签:-o   font   active   port   ges   roo   hid   tor   state   

原文地址:http://www.cnblogs.com/hadex/p/6802580.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!