GIT基本觀念與常用指令
- cd 'folder path'
- 切換至資料夾路徑
- git init
- GIT儲存庫初始化,準備管理資料夾內檔案
- git add <file name> <==這個步驟很重要,初學者常忘記。
- 將<file name>建立索引,這時候還沒有COMMIT哦。
- git status
- 查看GIT目前狀態
- git commit -m 'commit 說明內容' --author = 'Editor name <email address>'
- 正式將檔案簽入儲存庫
- git commit --amend -m '修改說明' --author = 'Editor name <email address>'
- 執行COMMIT後,要修改說明
注意:檔案再次修改後,要送入儲存庫時,上述 Step 1 & Step 3 都要作一次。
留言
張貼留言