원클릭으로
git-workflow
Git workflow best practices and guidelines for efficient branch management, commits, and collaboration.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Git workflow best practices and guidelines for efficient branch management, commits, and collaboration.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Summarize and condense content effectively
Translate content between languages with context awareness
API testing best practices, tools, and workflows for RESTful API testing.
Code quality standards, metrics, and practices for maintaining clean, maintainable codebases.
Code review best practices, guidelines, and checklists for effective peer reviews.
Go debugging best practices, tools, and techniques for effective troubleshooting.
| name | git-workflow |
| description | Git workflow best practices and guidelines for efficient branch management, commits, and collaboration. |
| version | 1.0.0 |
| author | magic |
| license | MIT |
| metadata | {"hermes":{"tags":["git","workflow","collaboration","version-control"],"category":"software-development"}} |
A comprehensive guide for Git branch management, commit conventions, and collaborative development workflows.
Load this skill when:
# Branch naming conventions
git checkout -b feat/add-login # New feature
git checkout -b fix/auth-bug # Bug fix
git checkout -b docs/update-readme # Documentation
git checkout -b refactor/api-cleanup # Code refactoring
# Conventional commits
git commit -m "feat: add user login endpoint"
git commit -m "fix: resolve authentication timeout"
git commit -m "docs: update API documentation"
# Keep branch updated
git fetch origin
git rebase origin/main
# PR workflow
git push origin feat/add-login
# Then create PR via GitHub/GitLab/Bitbucket UI
Follow the format: type/description
| Type | Usage |
|---|---|
feat/ | New features |
fix/ | Bug fixes |
docs/ | Documentation changes |
refactor/ | Code refactoring |
test/ | Adding or updating tests |
chore/ | Maintenance tasks |
perf/ | Performance improvements |
Rules:
feat/add-user-authFollow Conventional Commits:
<type>(<scope>): <subject>
<body>
<footer>
# Simple commit
git commit -m "feat: add password reset endpoint"
# With scope
git commit -m "fix(auth): resolve token expiration issue"
# With body
git commit -m "feat: implement user profile page
- Add profile display component
- Add edit profile functionality
- Integrate with user API"
# Breaking change
git commit -m "feat: redesign API endpoints
BREAKING CHANGE: API endpoints now require authentication"
feat: Add user authentication system
fix: Resolve login redirect loop
docs: Update deployment guide
.gitignore properlymain/master# 1. Start from main
git checkout main
git pull origin main
# 2. Create feature branch
git checkout -b feat/new-feature
# 3. Develop and commit
git add .
git commit -m "feat: implement new feature"
# 4. Keep updated with main
git fetch origin
git rebase origin/main
# 5. Push and create PR
git push origin feat/new-feature
# 1. Start from main
git checkout main
git pull origin main
# 2. Create hotfix branch
git checkout -b fix/critical-bug
# 3. Fix and commit
git add .
git commit -m "fix: resolve critical production bug"
# 4. Push and create PR (mark as urgent)
git push origin fix/critical-bug
Problem: Conflicts when merging/rebasing
Solution:
git status to identify conflicted filesgit add and git commitProblem: Local branch diverges significantly from remote
Solution:
git pull --rebase before starting new workgit config --global alias.up 'pull --rebase'Problem: Commits on detached HEAD or abandoned branches
Solution:
git reflog to recover lost commitsAfter setting up workflow:
git branch shows proper namesgit log --oneline shows conventional commitsgit rebase main completes without conflicts