# 1.3 协作贡献

# 1.3.1 规范说明

首先,感谢大家对于due (opens new window)的关注和支持。为了加快due (opens new window)社区的建设和完善,这里对于如何提交代码作出以下说明:

# 1.3.2 贡献代码

准备工作: 如果你没有github账号, 您需要申请一个github账号, 接下来可以继续下一步.

  1. Fork 代码

    1. 访问 https://github.com/dobyte/due (opens new window)
    2. 点击 "Fork" 按钮 (位于页面的右上方)
  2. Clone 代码

git clone https://github.com/<your-github-account>/due
cd due
git remote add upstream 'https://github.com/dobyte/due'
1
2
3
  1. 创建 feature 分支
git checkout -b feature/my-feature 
1
  1. 同步代码
git fetch upstream
git rebase upstream/main
1
2
  1. 提交 commit
git add .
git commit
git push origin my-feature
1
2
3
  1. 提交 PR
访问 https://github.com/dobyte/due, 

点击 "Compare" 比较变更并点击 "Pull request" 提交 PR
1
2
3

可以使用 github desktop (opens new window) 快速发起 PR

# 1.3.3 贡献者

due (opens new window)社区的贡献者: