208 字
1 分鐘
使用git指令下載github任何的程式碼

介紹#

使用指令下載 github 內的程式碼非常方便,趕快學一下如何使用,你也不用記指令怎麼打教你怎麼快速取得指令說明。

教學#

必須安裝 git#

(在新分頁開啟)https://git-scm.com/(在新分頁開啟)
推薦 git 教學文章(在新分頁開啟)

切換到要下載的目錄#

Windows 作業系統示範

Terminal window
cd c:\mycode

不想記指令沒關西! 只需要 help#

Terminal window
git help

你可以看到 clone 這個說明,如果英文不懂就複製到 google 翻譯看就可以知道再說什麼。githubdownloads01

找一個想要得程式碼#

我想練習 javascript 所以找了 javascript。

(在新分頁開啟)https://github.com/dustinhsiao21/Javascript30-dustin(在新分頁開啟)

githubdownloads02

輸入下載指令#

Terminal window
git clone https://github.com/dustinhsiao21/Javascript30-dustin.git
使用git指令下載github任何的程式碼
https://aishuafei.com/posts/使用git指令下載github任何的程式碼/
作者
愛耍廢
發佈於
2020-02-21
許可協議
CC BY-NC-SA 4.0