[Github] 建立一個新的branch,並把專案程式push到Github
建立新 branch
開啟Github官網

登入Github

點擊右邊的頭像

點擊Your repositories

點擊”New”按鈕

輸入欄位

Repository name(倉庫名稱):practice
Description:這是一個練習專案
輸入完成後,點擊”Create repository”按鈕,倉庫就建立完成囉!

可以看到此時的 repo 只有一個 README 檔案

Clone 剛剛建立好的 branch
到想要 Clone 下來的資料夾 > cmd > 下指令 git clone xxx.git,例如 git clone small-book-boy-info-frontend 專案


這時可以看到 只有 1個 .git 檔和README.md 檔

然後我們要把另一個專案 vue-deployment 的程式複製過來

直接把除了 .git 以外的檔案都 copy 一份貼上

貼上後的 small-book-boy-info-frontend 資料夾

這時用 VSCode 開啟 small-book-boy-info-frontend 資料夾

可以看到所有的檔案幾乎都顯示 A,代表是新增的檔案~
打上 Commit 訊息 “[ADD]登入功能”> 點擊 commit > 點擊三個 . > Push
再回去 Github 觀察 Repo

可以看到我們就成功把另外一個專案的程式成功 push 到 small-book-boy-info-frontend 的 Repo了!!!