본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4740

git-pushing

하는 일

이 도구는 코드 변경 사항을 원격 저장소(예: GitHub)에 안전하고 체계적으로 저장하도록 돕습니다. 커밋 메시지가 표준 형식을 따르도록 하여 무엇이 바뀌었는지 이해하기 쉽게 만듭니다.

사용하는 경우

  • ✓GitHub나 GitLab에 작업을 저장하고 싶을 때.
  • ✓코드 작업을 마치고 공유하려고 할 때.
  • ✓'push'나 '저장'을 명시적으로 요청할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-pushing/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-pushing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 변경 사항을 GitHub에 푸시할 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 올바른 파일만 푸시하고 있는지 확인하고, 수행한 작업에 대한 표준화된 메시지를 만든 다음, 그제야 모든 것을 원격 저장소로 보냅니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Git Push Workflow

Stage only intended changes, create a conventional commit, and push to the remote branch.

When to Use

Automatically activate when the user:

  • Explicitly asks to push changes ("push this", "commit and push")
  • Mentions saving work to remote ("save to github", "push to remote")
  • Completes a feature and wants to share it
  • Says phrases like "let's push this up" or "commit these changes"

Safety Gates

Before staging, inspect git status --short --branch, confirm the intended files, and fetch the upstream branch when a concurrent push is plausible. Do not absorb unrelated dirty files.

Read repository policy before choosing the destination branch. If main or master is protected, or the repository defines a maintainer command such as merge:batch, create or use a topic branch and finish through the required pull-request checks. A user request to “push to main” describes the desired final state; it does not authorize bypassing server-side protection. Never keep retrying a direct push after a protected-branch rejection.

The helper requires an empty live index and a conventional commit message before it stages anything. It locks the live index, builds and validates the commit in an isolated temporary index, rejects -- without paths, and atomically updates the branch only if its parent is unchanged.

The helper honors branch.<name>.pushRemote, remote.pushDefault, and the branch's configured upstream, in that order. For a new branch without those settings, it requires origin and establishes origin/<branch>. It rejects detached HEAD and invalid remote configurations before staging.

Do not use this skill for a maintainer merge batch, canonical synchronization, versioned repository release, tag publication, or a repository with an explicit merge:batch, release:prepare, or release:publish workflow. Use that repository's maintainer/release flow instead; it owns pull-request evidence, protected-branch checks, generated files, tags, and publication verification.

Workflow

Use the helper only after the safety gates pass. Resolve the installed directory that contains this SKILL.md and substitute its absolute path for <skill-directory> below; do not assume the current working directory is the catalog repository. With no paths the helper stages all current changes, so use that form only when every dirty file belongs to the requested commit:

bash "<skill-directory>/scripts/smart_commit.sh"

With custom message:

bash "<skill-directory>/scripts/smart_commit.sh" "feat: add feature"

To stage only named files, pass them after --:

bash "<skill-directory>/scripts/smart_commit.sh" "fix: scope change" -- path/to/file

The helper handles isolated staging, commit creation, and push; it does not replace validation, release tooling, or a rebase required by an advanced upstream branch.

Limitations

  • The helper currently requires Git's files ref backend; it rejects reftable repositories before creating a commit because their refs cannot use the filesystem lock protocol.
  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
자주 묻는 질문

「커밋」이란 무엇인가요?

특정 시점의 코드 스냅샷과 변경 내용에 대한 설명을 남기는 것과 같습니다. 프로젝트의 기록을 추적하는 데 도움이 됩니다.

「푸시」란 무엇인가요?

이 커밋(코드의 스냅샷)을 내 컴퓨터에서 GitHub 같은 공유 저장소로 보내는 작업입니다. 다른 사람이 볼 수 있고, 백업 목적으로도 사용됩니다.

표준화된 메시지를 왜 사용하나요?

'feat: 로그인 추가' 같은 표준 메시지는 변경의 유형과 목적을 빠르게 이해하도록 해 주어, 협업과 코드 유지 관리를 쉽게 합니다.

상세 정보

작성자의 원본 설명

Safely stage, commit, and push intended git changes with conventional commit messages. Use for ordinary non-release pushes when explicitly asked to push, save work remotely, or share a completed change.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4740
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬