Skip to content

Latest commit

 

History

History
87 lines (69 loc) · 1.95 KB

File metadata and controls

87 lines (69 loc) · 1.95 KB

贡献指南


1. 本地分支同步及创建分支

  • 拉取develop分支上的最新代码
git pull origin develop
  • 从develop分支创建新的分支
git checkout -b feature/xxxx

注意:分支命名规范

  • 新功能分支命名规范: feature/功能描述
  • 例如: feature/user-login, feature/payment-integration
  • 切换到新分支
git checkout feature/xxxx

2. 开发过程

  • 添加修改过的文件
git add .
  • 提交代码
git commit -m "描述"
  • 推送到远程分支
git push origin feature/xxxx

3. 在 GitHub 上创建 Pull Request

  • 创建 Pull Request
  • 将feature/xxxx 分支合并到 develop 分支
  • 等待代码 Review
  • 合并代码
  • 合并后删除 feature/xxxx 分支