Files
gerrit/项目创建成功.md
2025-12-22 17:12:39 +08:00

72 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 项目创建成功!
## ✅ 已创建的项目
我已经在服务器端创建了项目:**test-project**
## 查看项目
### 方法一:刷新 Web 界面
1. **刷新 Repositories 页面**(按 `F5`
2. 项目 `test-project` 应该会出现在列表中
### 方法二:直接访问项目
在浏览器地址栏输入:
```
http://101.43.95.130:8080/#/admin/projects/test-project
```
## 使用项目
### 克隆项目到本地
```bash
# 方式一:通过 SSH推荐
git clone ssh://renjianbo@101.43.95.130:29418/test-project
# 方式二:通过 HTTP
git clone http://101.43.95.130:8080/test-project
```
### 推送代码进行评审
```bash
cd test-project
echo "# Test Project" > README.md
git add README.md
git commit -m "Add README file"
git push origin HEAD:refs/for/master
```
## 创建更多项目
### 方法一:通过 Web 界面
1. 访问:`http://101.43.95.130:8080/#/admin/projects/create`
2. 填写项目信息
3. 点击 "Create Project"
### 方法二:手动创建(服务器端)
如果 Web 界面没有创建按钮,可以在服务器上手动创建:
```bash
cd /home/renjianbo/gerrit_install/review_site/git
mkdir my-new-project.git
cd my-new-project.git
git init --bare
```
然后刷新 Web 界面即可看到新项目。
## 下一步
1.**项目已创建**`test-project`
2.**可以开始使用**:克隆项目并推送代码
3. 📝 **查看项目**:在 Repositories 页面查看所有项目
祝您使用愉快!🎉