프롬프트 도감 › No.2168
커밋·푸시·PR 한 번에
Push and Pull Request
바뀐 파일을 확인해 커밋하고 푸시한 뒤 main으로 보내는 PR까지 한 번에 열어 줘요. 변경이 여러 종류면 커밋을 나눠 줘요.
이럴 때 Claude Code 반복 작업 줄이기, 커밋 메시지 규칙 맞추기, 빠른 PR 올리기
도구 ChatGPT · Claude · Gemini
프롬프트
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*) description: Commit and push everything then open a PR request to main --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task 1. Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits. If there are no outstanding changes proceed to 2. 2. Push all commits. 3. Open a PR to main following the conventional formats.
팁
- .claude/commands 폴더에 파일로 저장해요
- main 대신 내 기본 브랜치 이름으로 바꿔요
출처
권리: CC0 (f/prompts.chat). 자유 사용. 기여자: DoguD.