#설치: #코파일럿: #깃허브 #커맨드라인
#설치: #코파일럿: #깃허브 #커맨드라인
2024-09-15 Note cli copilot github notes설치 gh auth login
➜ gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations on this host? SSH
? Upload your SSH public key to your GitHub account? /home/junghan/.ssh/id_rsa.pub
? Title for your SSH key: GitHub CLI
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: 3C79-0EB6
Press Enter to open github.com in your browser...
기존 브라우저 세션에서 열기
✓ Authentication complete.
- gh config set -h github.com git_protocol ssh
✓ Configured git protocol
✓ SSH key already existed on your GitHub account: /home/junghan/.ssh/id_rsa.pub
✓ Logged in as junghan0611
! You were already logged in to this account
~ via v20.14.0 via 🐍 v3.12.3
➜
gh extension install github/gh-copilot
Copilot in the CLI 업데이트
Copilot in the CLI 확장을 설치한 후에는 언제든지 다음을 실행하여 업데이트할 수 있습니다.
gh extension upgrade gh-copilot
사용 – 영어 답변
➜ gh copilot explain "sudo apt-get"
? Allow GitHub to collect optional usage data to help us improve? This data does not include your queries.
> Yes
Welcome to GitHub Copilot in the CLI!
version 1.0.5 (2024-09-12)
I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency
Explanation:
• sudo is used to run a command with elevated rights, typically as the superuser.
• apt-get is the package management command-line tool for Debian-based Linux distributions.
• It is used to install, upgrade, and manage software packages.
• Running apt-get without any arguments will display the help message and available
Related-Notes
References
마지막 수정일자