home/categories/git-workflows/cblecker-claude-skills-git-workflows-skills-syncing-branch-skill-md
git-workflowsdevops

sync-a-git-branch

Provides fork-aware branch synchronization with automatic remote detection and safe merge handling. Detects fork vs origin repositories, fetches from correct remotes (upstream for forks), and handles fast-forward merges with conflict prevention. Use for 'sync branch', 'pull latest', 'get latest changes', 'sync with upstream', 'update from main'.

cblecker
maintainer
cblecker
更新于 1/12/2026
星标
1
分支
0
quick start

Installation and usage

Provides fork-aware branch synchronization with automatic remote detection and safe merge handling. Detects fork vs origin repositories, fetches from correct remotes (upstream for forks), and handles fast-forward merges with conflict prevention. Use for 'sync branch', 'pull latest', 'get latest changes', 'sync with upstream', 'update from main'.

安装
$ install --globalskills.sh
使用

安装后,您可以通过在终端运行以下命令来使用此技能:

skills use sync-a-git-branch