git-sync-main
by community
Use this page as a decision snapshot for git-sync-main: trust signal, install momentum, real user feedback, and high-intent related pages you can compare next.
Description
# Git Sync Main 同步最新主分支代码到本地并切换到主分支。支持两种场景:fork 的项目从 official remote 同步,自己的项目从 origin 同步。 ## 触发条件 当用户要求同步上游代码、更新主分支、或拉取最新主分支代码时使用此 skill。 ## 执行步骤 1. **检查 remote 配置**:`git remote -v`,确认是否存在 `official` remote。 2. **根据是否存在 official remote 分两种情况执行**: ### 情况一:存在 official remote(fork 的项目) 3. **检测主分支名称**:通过 `git remote show official` 或查看本地分支,确定主分支名称(`main` 或 `master`)。 4. **拉取 official 最新代码**:`git fetch official`。 5. **切换到本地主分支**:`git checkout <main-branch>`。 6. **同步代码**:`git reset --hard official/<main-branch>`,将
Install git-sync-main
Run this in your OpenClaw agent to add git-sync-main from the ClawHub registry.
openclaw skills install git-sync-mainRequires ClawHub registry access. Review the security analysis below before installing.
Security Analysis
Open Source
Code is publicly available for audit.
Community Verified
Reviewed by the ClawHub community.
Community Reviews
Real user ratings only — separate from the editorial assessment and ClawHub signal.
Installed this skill? Sign in and leave the first review.
Save the skill now, come back after testing it, and help the next person choose with a quick review.
Related skills
Frequently asked questions
Is git-sync-main safe to install?
git-sync-main has a SkillsReview security score of 50/100. It is open source and community-verified on ClawHub. Check the full Security Analysis on this page before installing.
How much does git-sync-main cost?
git-sync-main is free to install for OpenClaw via ClawHub.
What are the best alternatives to git-sync-main?
You can compare git-sync-main side by side with similar OpenClaw skills on the SkillsReview comparison page to find the best fit for your workflow.
How do I install git-sync-main?
Install git-sync-main from ClawHub at clawhub.ai/skills/git-sync-main, or use the install action on this page to copy the command for your OpenClaw agent.
Community Signal
Historical movement
Timeline plus trend snapshots for security, reviews, and reputation tilt.
Trend Charts
30 / 90 / 180 day snapshots for ranking movement and security-score movement.
Last updated unknown UTC
Submit your review
Share your experience and help others find the best skills.
Newsletter
Stay updated on git-sync-main and the wider SkillsReview ecosystem
Get the weekly Top 5, fresh security alerts, and newly hot skills by email. You can unsubscribe from any newsletter email in one click.