0%

Git Bash基本指令操作

Git Bash基本操作

當前資料夾新建一個資料夾

1
$ mkdir [資料夾名稱]

當前資料夾建立一個檔案

1
$ touch [檔案名稱.副檔名]

顯示當前資料夾檔案 (list)

1
$ ls

顯示目前資料夾路徑 (print working directory)

1
$ pwd 

移動到資料夾 (change directory)

1
$ cd [資料夾名稱]

回到上一層資料夾

1
$ cd ..

用檔案總管開啟當前資料夾

1
$ start .

用檔案總管開啟父層資料夾

1
$ start ..

刪除檔案

1
$ rm [檔案名稱.副檔名]

刪除資料夾 (-r recusive 是递归的意思)

1
$ rm -r [資料夾名稱]

删除一个文件夹, r (recursive 是遞迴的意思), 先刪除資料夾裡內容再刪除資料夾

1
$ rm -r

用編輯器開啟當前資料夾

1
$ code .

用編輯器開啟父層資料夾

1
$ code ..

清空畫面所有訊息 (快捷鍵ctrl + l)

1
$ reset

Welcome to my other publishing channels