Gerrit 添加一个已经有的git工程到gerrit服务器
2014-01-18 15:56
651 查看
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:
首先创建这个项目
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仓库中去
This will create a repository that you can clone to work with.
首先创建这个项目
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.
相关文章推荐
- Gerrit 添加一个已经有的git工程到gerrit服务器
- 【Gerrit】添加git工程到gerrit服务器
- 实验: git 如果.gitignore中添加一个已经跟踪的文件结果是?
- 给已经创建的工程添加git支持
- linux 下 将一个已有目录添加到git服务器
- 在git服务器上新建一个工程,怎么把本地的工程对应到远程的git服务器上面的工程
- ---GITHow 如何undo一个已经被push到上游服务器的commit
- IDEA中一个工程多个模块(module)分别提交到不同的git服务器
- git服务器:[3]xcode6 git仓库检出并添加工程
- git服务器:[3]xcode6 git仓库检出并添加工程
- EClipse的工程中添加一个已经存在的java文件
- 全志添加一个工程的过程
- 快速搭建一个开源的Git服务器
- 已经在Git Server服务器上导入了SSH公钥,可用TortoiseGit同步代码时,还是提示输入密码?
- Gerrit 创建一个新工程
- git学习--gerrit服务器搭建总结
- 如何创建一个自己的git服务器
- 已经安装好的nginx,需要添加一个未被编译安装的模块,需要怎么弄呢
- 给已经存在的项目添加git
- Git@OSC 服务器关于 RAID 的一个问题处理