# 任務 1 :環境初始化 ## 關卡示範影片 {%youtube S5OYocxyuco %} ## 關卡提醒 1. 如果您的組員有多位要一同參與,可以重複 1-10~1-13 的動作。建議等組員做完後,再讓下個組員進行,不要同時 clone,避免版本衝突 ## 你可以掌握的技術 1. **Repository 的建立與設定:** 在 GitHub 上創建新的 Repository,並能夠添加、編輯檔案,如 README.md 和 .gitignore。 2. **權限管理與協作:** 能夠授予其他使用者存取 Repository 的權限,並瞭解 Collaborators 的邀請流程。 3. **版本控制的基本操作:** 使用 git clone, git commit, git push, 和 git pull 指令來管理和更新 Repository。 4. **Markdown 文件的編輯:** 熟悉如何在 README.md 檔案中使用 Markdown 語法和 HTML 標籤。 5. **Commit 訊息的管理:** 能夠撰寫有意義的 commit 訊息,並瞭解如何查看 Repository 的 commit 歷史。 ## 任務流程 - [ ] 1-1:A 成員先到 GitHub 建立一個新 Repo - [ ] 1-2:A 成員在 GitHub 建立 Repo 介面中,添加 `空白的 README.md`。 - [ ] 1-3:A 成員增加 `.gitignore` 忽略清單,忽略掉 `node_modules/` - [ ] 1-4:A 成員提供 GitHub Repo 權限給 B 成員,位置在 `Settings > Collaborators` - [ ] 1-5:B 成員收 Email 審核同意 Repo 權限,並將 GitHub Repo Clone 下來 - [ ] 1-6:B 成員在 `READMD.md` 將內容全部清空,新增一個 h2,內容為 `團隊成員` - [ ] 1-7:B 成員在團隊成員標題下方,增加一個 ul li 列表,並新增自己的名字在第一個 li 上 - [ ] 1-8:B 成員進行 commit, comment 內容為 `新增團隊成員區塊` - [ ] 1-9:B 成員完成一個 commit 更新後,進行 push 動作 - [ ] 1-10:A 成員 clone Repo,並用 vscode 開啟專案資料夾 - [ ] 1-11:A 成員在 `READMD.md` 新增第二個 li,並寫上自己的名字 - [ ] 1-12:A 成員進行 commit, comment 內容為 `新增成員名字` - [ ] 1-13:A 成員完成一個 commit 更新後,進行 push 動作 - [ ] 1-14:B 成員再次將內容 Pull 下來,確保有接收到 `READMD.md` 的團隊成員有兩個名字 ## 通關檢核點 - [ ] A、B 成員與 GitHub Repo 都有相同的 commit 數量 - [ ] GitHub Repo 上的 `READMD.md`,都擁有所有團隊成員的名稱 - [ ] GitHub Repo 上有忽略清單 `.gitignore` ## 預期線圖  ## 提交 Git Repo 連結 * [練習用 Git Repo 連結](https://github.com/gonsakon/test1007)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up