git-sync

Syncs local and remote branches safely. Use for fetch/pull/rebase/push workflows, conflict handling, and branch alignment before merge.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-sync" with this command: npx skills add erinrugas/artisan-agents/erinrugas-artisan-agents-git-sync

Git Sync Skill

When to Apply

  • User asks to sync with remote.
  • Branch is behind base branch.
  • Pre-PR branch cleanup is needed.

Workflow

  1. Fetch latest refs.
  2. Choose strategy:
    • Fast-forward pull when possible.
    • Rebase for linear history.
    • Merge when preserving branch topology is required.
  3. Resolve conflicts and re-validate locally.
  4. Push safely (--force-with-lease only after rebase when necessary).

Safety

  • Never force-push protected branches.
  • Prefer explicit base branch in commands.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

api-endpoint

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

db-reset

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

pest-testing

No summary provided by upstream source.

Repository SourceNeeds Review