git 版本控管-基本指令(1)

最近稍微複習一下git 版本控管的資料.紀錄一下基本的指令

將目錄初始化,變成git repository , eg: testdir

指令:

git init

eg: git init testdir

這樣testdir 就變成一個repository

然後將testdir 裡面的檔案 test.txt 加入控管

指令:

git add test.txt

如果要把所以資料夾的檔案全部加入的話,指令如下:

git add -f --all

當檔案編輯完後,執行寫入指令 Commit

指令:

git commit -m "說明敘述"

[ad#co-5]

Tags: ,

Leave a Comment