Lightlines
By zc277584121

git-sync-main

ZH
zc2775841213.2k installs

Bring your local Git main branch up to date.

What it does

Synchronizes the local main branch with the official or origin remote and switches the working branch to it.

When to use it

Use when the user asks to synchronize upstream code, update the main branch, or pull its latest code.

How to use it

Give it a repository to synchronize; it updates and switches to the local main branch, also updating the fork's origin branch when an official remote exists.

What you provide

  • An existing project

Good to know

  • cannot be undone: origin; local main branch

Latest review

What you need · 0

No setup requirements listed.


Access · 3

This skill

origin

Write

Force-pushes your fork's main branch (irreversible)

local main branch

Write

Hard-resets your local main branch (irreversible)

official

Read

Fetches upstream Git changes