| 指令 | 解釋 | 說明 | | :-----| ----: | :----: | | ls | 查看路徑下檔案清單 | ls <路徑> | | cd | 改變目前所在路徑 | cd <路徑> | | git clone | 從remote的倉庫,複製到local | git clone <網址> | | git init | 初始化git資料 | git init | | git add | 將檔案加入到git之中 | git add <檔案名稱> | | git add . | 將該路徑下的所有檔案加到git之中 | git add . | | git pull | 將檔案同步最新的版本 | git pull | | git commit | 將這次加入的檔案新增commit | git commit -m <commit內容> | | git add remote | 添加remote地址 | git add <remote暱稱> <remote地址> | | git push | 推送local端檔案到remote | git push -u <remote暱稱> <分支名稱> [git教學參考](https://backlog.com/git-tutorial/tw/) [github](https://github.com)