Open Source 開發流程簡易整理
1.尋找適合的 Open Source 專案
2. Fork 到自己的 Repository
點選 GitHub/GitLab 的 Fork 按鈕,把原始倉庫 (upstream) 複製到自己的帳號,變成自己的 repo (origin)。
3. Clone 專案到本地端
- 設定 upstream(指向原始專案):
- origin 指向你的 fork。
- upstream 指向原始 repo(官方專案)。
4. 建立新分支開發
5. 開發與測試
- 修改代碼,並確保符合貢獻規範(Lint、測試)。
- 執行測試
7. 推送到自己的 Fork(origin)
8. 建立 Pull Request(PR)
9. PR 被合併
-
Maintainer 合併 PR:
- 如果符合規範,Maintainer 會 Merge PR,變更正式進入 upstream/main。
- 可能會被 Squash 成單一 commit。
-
刪除本地和遠端分支(清理):
10. 同步 upstream 最新狀態
確保你的 main 分支是最新的:
完整流程圖
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →