Skip to main content

commit-push

Commit staged/unstaged changes and push to the remote branch in one step

소스 정보

저장소
anyproto/anytype-ts
최근 소스 활동
2026년 2월 20일 22:55
감지된 SKILL.md 언어
영어
스타
8,927
포크
589

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
commit-push
description
Commit staged/unstaged changes and push to the remote branch in one step
# Commit & Push Skill Commit all current changes and push to the remote in a single workflow. ## Process 1. **Check state** — Run `git status` (no `-uall`), `git diff` (staged + unstaged), and `git log --oneline -5` in parallel 2. **Abort if clean** — If there are no changes, inform the user and stop 3. **Stage files** — Add changed files by name (never use `git add -A` or `git add .`). Skip files that look like secrets (`.env`, credentials, tokens) 4. **Draft commit message** — Follow the repo's `JS-XXXX: short description` convention. Summarize the "why", not the "what" 5. **Commit** — Use a HEREDOC for the message. Always append the co-author trailer: ``` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> ``` 6. **Push** — Push to the current remote-tracking branch (typically `origin/develop`). Use `git push` (never force-push) 7. **Confirm** — Show the resulting commit hash and remote status ## Rules - Never amend existing commits - Never force-push - Never skip hooks (`--no-verify`) - Never commit files that contain secrets - Always create a NEW commit, even after a hook failure - Push target is always the current branch's upstream (usually `develop`)
GitHub에서 보기