git-sync

Stage, commit, and push local Git changes to a remote repository.

1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/unana5577/a-stock-monitor --skill git-sync-unana5577
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-sync
Source: https://github.com/unana5577/a-stock-monitor/tree/main/.trae/skills/git-sync
Command: npx skills add https://github.com/unana5577/a-stock-monitor --skill git-sync-unana5577

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

自动化并可回滚地将本地 Git 变更同步到远端,避免手动操作带来的失误和冲突。

Core Features & Use Cases

  • 初始化仓库并关联远端,以便首次同步
  • 自动阶段性提交并推送到目标分支,确保变更历史清晰
  • 分支清理和回滚支持,降低分支混乱

Quick Start

请在当前仓库执行变更提交并推送到远端以完成同步。

Frequently Asked Questions about git-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate pushing local Git changes to a remote repository?

To automate pushing local Git changes, the Skill stages, commits, and pushes updates to a configured remote repository, ensuring a clear and safe change history without manual intervention.

What is the safest way to initialize a new Git repository and link it to a remote?

The safest way to initialize a new Git repository and link a remote is through an automated workflow that respects .gitignore and prevents accidental deletion of tracked files during the first sync.

Can I merge branches and clean up obsolete remote branches automatically?

Yes, you can merge branches and clean up obsolete remote branches automatically using this workflow, which includes branch cleanup and rollback support to reduce branch management complexity.

Does this Git workflow prevent accidental deletion of tracked files?

Yes, this Git workflow prevents accidental deletion of tracked files by performing actions only within the current repository scope and respecting .gitignore rules during local-safe operations.

Why do I need an automated workflow for local-safe Git push operations?

You need an automated workflow for local-safe Git push operations to avoid manual mistakes and conflicts, ensuring changes are safely staged, committed, and pushed with reversible rollback support.

Are there limitations on pushing updates when using an automated Git workflow?

A limitation of using an automated Git workflow is that it performs actions only within the current repository, restricting operations to the configured remote and preventing cross-repository changes.