npx skills add https://github.com/october-academy/agent-plugins --skill sync快速与远程仓库进行 git 同步。
/sync # 从 origin main 拉取
/sync develop # 从 origin develop 拉取
/sync upstream # 从 upstream main 拉取(适用于 forks)
git status
如果工作目录有未提交的更改:
选项:
git stash → 同步 → git stash pop/cpgit checkout .Quick git synchronization with remote repository.
/sync # Pull from origin main
/sync develop # Pull from origin develop
/sync upstream # Pull from upstream main (forks)
git status
If working directory has uncommitted changes:
Options:
git stash → sync → git stash pop/cp广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
默认(origin main):
git pull origin main
使用变基(历史记录更清晰):
git pull --rebase origin main
同步成功后:
Synced with origin/main
- 3 commits pulled
- Files changed: 5
- No conflicts
如果发生合并冲突:
git add <files> → git commit# 如果 upstream 不存在,则添加
git remote add upstream <original-repo-url>
# 与 upstream 同步
git fetch upstream
git merge upstream/main
如果本地和远程分支已分叉:
# 选项 1: 合并(默认)
git pull origin main
# 选项 2: 变基(更清晰)
git pull --rebase origin main
# 选项 3: 重置(破坏性操作,需询问用户)
git fetch origin
git reset --hard origin/main
| 错误 | 解决方案 |
|---|---|
| "Uncommitted changes" | 先暂存或提交 |
| "Merge conflict" | 帮助解决冲突 |
| "Remote not found" | 检查 git remote -v |
每周安装量
1.2K
仓库
首次出现
2026年2月13日
安全审计
安装于
codex970
gemini-cli968
amp968
github-copilot968
opencode968
kimi-cli967
git checkout .Default (origin main):
git pull origin main
With rebase (cleaner history):
git pull --rebase origin main
After successful sync:
Synced with origin/main
- 3 commits pulled
- Files changed: 5
- No conflicts
If merge conflicts occur:
git add <files> → git commit# Add upstream if not exists
git remote add upstream <original-repo-url>
# Sync with upstream
git fetch upstream
git merge upstream/main
If local and remote have diverged:
# Option 1: Merge (default)
git pull origin main
# Option 2: Rebase (cleaner)
git pull --rebase origin main
# Option 3: Reset (destructive, ask user)
git fetch origin
git reset --hard origin/main
| Error | Solution |
|---|---|
| "Uncommitted changes" | Stash or commit first |
| "Merge conflict" | Help resolve conflicts |
| "Remote not found" | Check git remote -v |
Weekly Installs
1.2K
Repository
First Seen
Feb 13, 2026
Security Audits
Installed on
codex970
gemini-cli968
amp968
github-copilot968
opencode968
kimi-cli967
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装