mirror of
https://github.com/RhenCloud/Cloud-Index.git
synced 2025-12-06 15:26:10 +08:00
docs: 更新贡献指南,简化提交步骤并调整分支命名建议
This commit is contained in:
17
README.md
17
README.md
@@ -276,19 +276,12 @@ A: 参考项目结构中的"添加新的存储后端"部分,继承 `BaseStorag
|
||||
cd Cloud-Index
|
||||
```
|
||||
|
||||
3. **创建功能分支**
|
||||
|
||||
```bash
|
||||
git checkout -b feature/your-feature-name
|
||||
# 或修复 Bug: git checkout -b fix/bug-description
|
||||
```
|
||||
|
||||
4. **进行开发**
|
||||
3. **进行开发**
|
||||
- 遵循现有的代码风格
|
||||
- 添加必要的注释
|
||||
- 确保代码能正常运行
|
||||
|
||||
5. **提交更改**
|
||||
4. **提交更改**
|
||||
|
||||
```bash
|
||||
git add .
|
||||
@@ -296,13 +289,13 @@ A: 参考项目结构中的"添加新的存储后端"部分,继承 `BaseStorag
|
||||
# 或 "fix: 修复某某问题"
|
||||
```
|
||||
|
||||
6. **推送到 GitHub**
|
||||
5. **推送到 GitHub**
|
||||
|
||||
```bash
|
||||
git push origin feature/your-feature-name
|
||||
git push origin main
|
||||
```
|
||||
|
||||
7. **创建 Pull Request**
|
||||
6. **创建 Pull Request**
|
||||
- 在 GitHub 上打开你的 Fork
|
||||
- 点击 "New Pull Request"
|
||||
- 填写 PR 描述,说明你的更改内容和原因
|
||||
|
||||
Reference in New Issue
Block a user