スキル一覧に戻る
alirezamohammadpoor

git-workflow

by alirezamohammadpoor

0🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: git-workflow description: Guide git operations using a three-tier branching model (main → staging → feature). Use this skill when the user asks about git commands, branch strategy, PRs, rebasing, merging, deploying to production, hotfixes, or conflict resolution. Triggers include "git", "commit", "branch", "PR", "rebase", "merge", "deploy", "staging", "feature branch", "hotfix".

Git Workflow

Three-tier branching: main (production) → staging (integration) → feature/* (development).

Core Workflow

Start Feature

git feature <name>

Creates feature/<name> from latest staging.

During Development

git add -A && git commit -m "WIP: description"
git sync  # daily - rebases on staging

Before PR

git rebase -i origin/staging     # clean WIP commits
bun build && bun lint          # verify
git push origin feature/xxx --force-with-lease
gh pr create --base staging --title "feat: description"

Merge PR

GitHub → Squash and merge

Deploy to Production

git checkout main && git pull
git merge staging --ff-only
git push origin main

After Deploy (sync staging)

git checkout staging && git pull
git merge origin/main --ff-only
git push origin staging

Merge Strategy Rules

RouteMethodWhy
feature → stagingSquash (GitHub PR)Clean history
staging → mainFast-forward or merge commitPreserves feature commits

Never squash staging → main — breaks history connection.

Quick Reference

For detailed commands, see references/commands.md:

  • Hotfix workflow
  • Conflict resolution
  • Emergency recovery
  • Weekly maintenance

Conventional Commits

type(scope): description

Types: feat fix refactor chore docs test perf

Scopes: Project-specific (e.g., cart, api, checkout, schema)

Aliases

AliasAction
git syncRebase on origin
git feature <name>Create feature branch
git cleanupDelete merged branches

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です