- 先附上[官方文件](https://docs.github.com/en/copilot/github-copilot-in-the-cli/using-github-copilot-in-the-cli?fbclid=IwAR02yBoQpthbnM_sDF7yUIfYFgE--4K4UFJjzW6CpV-DcWX_GEO_VmiOiDw#installing-copilot-in-the-cli) 1. 安裝 github to the comman line [here](https://cli.github.com/) 2. 先使用以下指令確認安裝成功 ``` gh ``` 3. 登入github,並順著他完成一系列的驗證 ![image](https://hackmd.io/_uploads/HJZnZ--Va.png) ![image](https://hackmd.io/_uploads/HyQT-WW46.png) 4. 完成後使用以下指令安裝 gh-copilot ``` gh extension install github/gh-copilot ``` 5. 輸入指令upgrade gh-copilotot ``` gh extension upgrade gh-copilot ``` - 使用以下指令啟動copilot問他你想要問的command line ``` gh copilot explain or gh copilot explain "sudo apt-get" ``` ``` gh copilot suggest "Install git" ``` **真香.....** ![image](https://hackmd.io/_uploads/S1SLVb-V6.png)