[GIT基礎指令教學]

1.vs code環境設定 網站教學 環境設定

2.git網站 -> code -> local ->複製網址(https://github.com/antqtech/KM.git )

3.在桌面建立新的資料夾

4.file->open folder->點選新建立的資料夾並且打開

5.於terminalu依序輸入指令

(1)git clone “要抓取的網址”

(2) cd ./KM “改變目錄到"KM"這個資料夾”

新增及輸入檔案 在KM的資料夾中->new folder->new file(檔名+.md)->修改檔案內容->ctrl+s存檔

(3)git status “查詢目前目錄的「狀態」”

(4) git add . “把檔案交給 Git ,讓 Git 開始「追蹤」目錄,此時內容加到暫存區”

(5) git commit -m”輸入的內容” “將暫存區的內容提交到儲存庫(Repository)保留”

(6) git push “將本地端 Repository 的 commit 發佈到遠端”

詳細的內容請看這邊!