字符终端如何访问gerrit管理的git服务器
发布网友
发布时间:2022-05-27 16:41
我来回答
共1个回答
热心网友
时间:2023-11-04 10:02
首先创建这个项目
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$