发帖
2 1 0

给爱星物联开源项目贡献代码

Hogan
管理员

28

主题

28

回帖

1364

积分

管理员

积分
1364
QQ
爱星物联IoT云平台 1192 2 2024-8-15 09:28:38

贡献代码步骤如下:

  1. 先 fork 爱星物联的仓库([https://github.com/ubases/ubases](https://github.com/ubases/ubases)_iot_community.git
  2. 然后将fork的仓库clone 到本地,做一些 bug fix;
  3. 发起 pull request 给原仓库,让开源仓库负责人看到你修改的 bug;
  4. 等待爱星物联仓库负责人review 这个 bug,如果是正确的话,就会 merge 到他们的仓库中;

进入到开源仓库,先点击 fork 仓库

仓库地址:[https://github.com/ubases/ubases](https://github.com/ubases/ubases)_iot_community.git

image.png

fock之后,将在你的账号下复制一份代码,之后的更新和bug修复都直接提交到这个仓库即可

image.png

clone你的仓库代码到本地,并进行文件改动

git clone [https://github.com/](https://github.com/){你的GitHub账号}/ubases_iot_community.git  
cd ubases_iot_community
//...fix bug...
git add . && git commit -m "fix bug"
git push origin main

完成修改提交到main分支,点击Contribute>Open pull request 按钮

image.png

进入ubases的pull requests页面之后,输入标题、描述点击“create pull request”即可;

image.png

最后等待仓库负责人处理,仓库负责人将看到你的pull requests,进行分析之后将有效代码合并到开源仓库中;

──── 1人觉得很赞 ────

使用道具 举报

2024-8-15 11:18:50
用到再说
2024-8-15 14:59:52
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 27951 个
  • 话题数: 39407 篇