https://saffranblog.coderbridge.io/2020/12/01/github-collaboration/
https://www.youtube.com/watch?v=AFMoQqH6t3A
如果我想要貢獻別人的專案,流程基本上是這樣:
https://www.youtube.com/watch?v=uj8hjLyEBmU
GitHub flow 是一個 work flow,建議你「在一個專案中,要怎麼管理你的 branch」,流程大概是這樣:
git clone <https://github.com/example/example.git
>git checkout -b (分支名)
git diff
看你現在的code跟local端的儲存庫的代碼有什麼區別git add (changed_files)
git commit
git push origin (分支名)
會發現遠端儲存庫多出一支叫 (分支名) 的分支git checkout main
再把遠端的main同步到本地的main git pull origin main
git checkout (分支名)