gh copilot explain은 커밋 메시지를 쓰지 않는다. suggest가 초안
explain은 설명. suggest + git이 커밋 한 줄.
gh copilot explain은 명령의 뜻을 설명한다. 스테이징이나 git commit -m 초안을 대신 쓰지 않는다. 쓰레기 같지 않은 첫 커밋 메시지는 git add 뒤 gh copilot suggest에서 git command를 고르는 흐름에 가깝다. 단계를 맞추려면 oakmeet에서 방을 연다.
검색되는 실수는 gh copilot explain로 커밋 메시지를 쓰려는 것. 확장 README는 explain과 suggest를 나눈다. 메시지 초안은 suggest이다. CLI에서 Copilot, github/gh-copilot(2025-10-25부터 Copilot CLI로 이전 권장).
gh auth logingh extension installgit addgh copilot suggest
explain명령 설명
suggestgit / gh / shell 제안
diff --cachedsuggest가 봐야 할 diff
explain은 읽기, suggest는 초안
gh copilot explain
예: gh copilot explain 'git commit --amend'. 인덱스는 읽지 않는다.
gh copilot suggest
git command 선택 후 git diff --cached와 대조해 복사 또는 실행.
| 목표 | 명령 | 바로 commit? |
|---|---|---|
| amend 이해 | gh copilot explain | 아니오 |
| 스테이징된 변경 설명 | gh copilot suggest | subject 수정 후 |
| 터미널 첫 PR | gh pr create | 별도 글 — URL |
- 01gh auth login
OAuth. PAT는 readme 기준 비지원. Copilot 좌석·정책 필요.
- 02확장 설치
gh extension install github/gh-copilot --force - 03stage 후 diff
git diff --cached가 비면 suggest에 줄 내용이 없다. - 04suggest → git → 읽고 commit
fix한 줄은 거절. copy 후 직접git commit도 가능.
gh copilot suggest "스테이징된 변경용 커밋 메시지"explain은 배움. suggest는 초안. diff는 사람이 읽는다.
한 페이지에 explain vs suggest
oakmeet는 브라우저 화이트보드.
explain이 메시지를 쓰나?
아니다. suggest + git.