smithery.ai

git-sync-workflow

Best practices for git sync, rebase, and hooks.

First seen Mar 29, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 789 B
  • docs SUMMARY.md 72 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Git Sync & Workflow

When to use this skill

  • Syncing with remote (git pull).
  • Handling merge conflicts.
  • Pushing code.

1. Sync Strategy

  • Pull Before Push: ALways git pull --rebase origin main before starting work or pushing.
  • Rebase: Prefer rebase over merge for local feature branches to keep history linear.

2. Pushing

  • Safety: Use --force-with-lease instead of --force if rewriting history (only on your own branches).
  • Upstream: Set upstream early (git push -u origin feat/name).

3. Hooks

  • Pre-commit: Should run fast checks (lint-staged).
  • Pre-push: Run heavier tests if the project considers it necessary, otherwise leave to CI.