sudo apt update

sudo apt install git gh

mkdir test-gh

cd test-gh

opencode

再打開另一個終端機,輸入gh auth login

image.png

開啟網頁( **https://github.com/login/device**)輸入代碼:C590-46D1

gh auth status:查詢登錄狀態

image.png

在opencode的終端機中輸入:

用python寫一個bubble sort的程式,並放入bubble_sort資料夾中
用gh工具,幫我上傳到我的github

image.png

開啟https://github.com/Dong-HuiYun/bubble-sort網頁後,可以看到opencode寫的程式碼

image.png

幫我在bubble_sort.py增加一些說明,並更新到github

更新前

image.png