您的位置:首页 > 其它

【Gerrit】添加git工程到gerrit服务器

2016-11-11 17:25 435 查看
The other alternative is if you already have a git project that you want to try out Gerrit on. First you have to create the project. This is done via the SSH port:

首先创建这个项目

user@host:~$ ssh -p 29418 user@localhost gerrit create-project --name demo-project
user@host:~$


You need to make sure that at least initially your account is granted "Create Reference" privileges for the refs/heads/* reference. This is done via the web interface in the Admin/Projects/Access page that correspond

to your project.

After that it’s time to upload the previous history to the server:

把数据传到新建立的git仓库中去

user@host:~/my-project$ git push ssh://user@localhost:29418/demo-project *:*
Counting objects: 2011, done.
Writing objects: 100% (2011/2011), 456293 bytes, done.
Total 2011 (delta 0), reused 0 (delta 0)
To ssh://user@localhost:29418/demo-project
* [new branch]      master -> master
user@host:~/my-project$


This will create a repository that you can clone to work with.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: