目標

拿到準備好的 starter repo,變成你自己帳號下的 classwall repo,clone 到本機備用。

步驟

1. 用老師的 Template 建立你自己的 repo

image.png

  1. 打開老師提供的 starter repo 頁面
  2. 點右上角 Use this templateCreate a new repository
  3. Repository name 填 classwall
  4. Public(之後 Vercel 部署比較方便)
  5. Create repository

<aside> 💡

Use this template vs Fork 的差別:Use this template 會「拷貝」老師的檔案到你的 repo,跟原 repo 沒有關聯,你可以自由修改不會影響。Fork 則會保留關聯(適合之後想 PR 回的情況)。這堂課用 Use this template。

</aside>

2. Clone 到本機

image.png

在你想放專案的資料夾打開終端機,執行:

git clone <https://github.com/><你的帳號>/classwall.git
cd classwall

<aside> 🎓

順便複習 Gitgit clone 就是把 GitHub 上的 repo 完整下載到本機(含 .git 版本歷史)。之後改完程式碼,會用 branch + commit + PR 流程把改動推回 GitHub(下一頁 Step 1.5 會詳細教,Step 4 會實戰)。

</aside>

3. 用 VS Code 打開

檢查點