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

git-workflow

하는 일

이 스킬은 팀 프로젝트에서 Git을 사용하는 방법을 정리합니다. 명확한 커밋 메시지 작성부터 브랜치 관리까지 다룹니다. 일관되고 추적 가능한 버전 관리를 원하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Git 커밋을 하려고 하고 표준적이고 명확한 메시지가 필요할 때.
  • ✓기능이나 수정을 위해 브랜치를 만들거나, 이름 짓거나, 관리해야 할 때.
  • ✓풀 리퀘스트 작업 흐름이나 병합 충돌을 처리할 때.

스킬 링크

https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/git-workflow/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“captcha 새로 고침 버그를 고치는 제 변경에 맞는 올바른 커밋 메시지를 써 주세요.”

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

작동 방식

에이전트는 프로젝트의 커밋 유형, 범위, 제목 규칙을 따르고, 기록을 추적하기 쉽게 유지하도록 명확한 브랜치와 병합 방식을 사용합니다.

기술 내용 (원본 SKILL.md)

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

Git Workflow Standards

This document defines the project's Git usage standards, including commit message format, branch management strategy, workflows, merge strategies, and more. Following these standards improves collaboration efficiency, enables traceability, supports automation, and reduces conflicts.

Commit Message Standards

The project follows the Conventional Commits specification:

<type>(<scope>): <subject>

<body>

<footer>

Type Reference

Type Description Example
feat New feature feat(user): add user export functionality
fix Bug fix fix(login): fix captcha not refreshing
docs Documentation update docs(api): update API documentation
refactor Refactoring refactor(utils): refactor utility functions
perf Performance improvement perf(list): optimize list performance
test Test related test(user): add unit tests
chore Other changes chore: update dependency versions

Subject Rules

  • Start with a verb: add, fix, update, remove, optimize
  • No more than 50 characters
  • No period at the end

For more detailed conventions and examples, see references/commit-conventions.md.

Branch Management Strategy

Branch Types

Branch Type Naming Convention Description Lifecycle
master master Main branch, releasable state Permanent
develop develop Development branch, latest integrated code Permanent
feature feature/feature-name Feature branch Delete after completion
bugfix bugfix/issue-description Bug fix branch Delete after fix
hotfix hotfix/issue-description Emergency fix branch Delete after fix
release release/version-number Release branch Delete after release

Branch Naming Examples

feature/user-management          # User management feature
feature/123-add-export          # Issue-linked feature
bugfix/login-error              # Login error fix
hotfix/security-vulnerability   # Security vulnerability fix
release/v1.0.0                  # Version release

Branch Protection Rules

master branch:

  • No direct pushes allowed
  • Must merge via Pull Request
  • Must pass CI checks
  • Requires at least one Code Review approval

develop branch:

  • Direct pushes restricted
  • Pull Request merges recommended
  • Must pass CI checks

For detailed branch strategies and workflows, see references/branching-strategies.md.

Workflows

Daily Development Workflow

# 1. Sync latest code
git checkout develop
git pull origin develop

# 2. Create feature branch
git checkout -b feature/user-management

# 3. Develop and commit
git add .
git commit -m "feat(user): add user list page"

# 4. Push to remote
git push -u origin feature/user-management

# 5. Create Pull Request and request Code Review

# 6. Merge to develop (via PR)

# 7. Delete feature branch
git branch -d feature/user-management
git push origin -d feature/user-management

Hotfix Workflow

# 1. Create fix branch from master
git checkout master
git pull origin master
git checkout -b hotfix/critical-bug

# 2. Fix and commit
git add .
git commit -m "fix(auth): fix authentication bypass vulnerability"

# 3. Merge to master
git checkout master
git merge --no-ff hotfix/critical-bug
git tag -a v1.0.1 -m "hotfix: fix authentication bypass vulnerability"
git push origin master --tags

# 4. Sync to develop
git checkout develop
git merge --no-ff hotfix/critical-bug
git push origin develop

Release Workflow

# 1. Create release branch
git checkout develop
git checkout -b release/v1.0.0

# 2. Update version numbers and documentation

# 3. Commit version update
git add .
git commit -m "chore(release): prepare release v1.0.0"

# 4. Merge to master
git checkout master
git merge --no-ff release/v1.0.0
git tag -a v1.0.0 -m "release: v1.0.0 official release"
git push origin master --tags

# 5. Sync to develop
git checkout develop
git merge --no-ff release/v1.0.0
git push origin develop

Merge Strategy

Merge vs Rebase

Feature Merge Rebase
History Preserves complete history Linear history
Use case Public branches Private branches
Recommended for Merging to main branch Syncing upstream code

Recommendations

  • Feature branch syncing develop: Use rebase
  • Feature branch merging to develop: Use merge --no-ff
자주 묻는 질문

Conventional Commits란 무엇인가요?

유형, 선택적인 범위, 짧은 제목으로 이루어진 커밋 형식이며, fix나 feat 같은 것이 있습니다.

제목 길이 규칙은 무엇인가요?

제목은 동사로 시작하고, 50자 미만이어야 하며, 끝에 마침표를 찍지 않습니다.

병합 전략도 다루나요?

네. 브랜치 전략과 병합 방식도 함께 다룹니다.

상세 정보

작성자의 원본 설명

This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team collaboration.

repo: Galaxy-Dawn/claude-scholar

인기도

GitHub 스타
6.0k
순위
#14487
라이선스
MIT
업데이트
2026. 10. 19.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬