Back to list
JohnVicke

git-workflow

by JohnVicke

1🍴 0📅 Jan 13, 2026

SKILL.md


name: git-workflow description: Git workflow patterns including stacked PRs and common operations

Branch Strategy

  • Default branch: main
  • Feature branches from main
  • Stacked PRs for dependent changes

Stacked PR Workflow

# Create stack
git checkout main
git checkout -b feature-base
# ... make changes, commit, push, open PR

git stack feature-part2      # creates branch stacked on feature-base
# ... make changes, commit, push, open PR with base=feature-base

# Update stack after changes
git update-from-parent       # rebase current on parent branch

# After parent PR merges
git parent-merged            # rebase onto main, update tracking

# View stack
git show-stack

Common Operations

TaskCommand
Fix last commitgit fu (amend + force push)
Add to last commitgit oops (amend no-edit)
Quick WIP savegit wip (commit + push, skip hooks)
Interactive rebasegit rebase -i HEAD~n
View recentgit log --oneline -10

Pull Request Flow

  1. Push branch: git push -u origin branch-name
  2. Create PR: gh pr create --title "type: desc" --body "..."
  3. After review: squash or rebase merge
  4. Delete branch: gh pr merge --delete-branch

Rules

  • Pull strategy: fast-forward only (git pull --ff-only)
  • Auto-setup remote on push
  • Separate config for work directory (~/dev/anyfin/)

PR Title Format

feat: add new capability
fix: resolve specific bug
refactor: restructure without behavior change
docs: update documentation
test: add/fix tests
chore: maintenance tasks

Score

Total Score

40/100

Based on repository quality metrics

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

Reviews

💬

Reviews coming soon