Any Sync Push

Push local workspace changes directly to configured branch on GitHub

imink 4991db1 994 B Updated

File contents

Push to GitHub

Push local workspace changes directly to the configured branch on GitHub.

Steps

1. Find Config

Look for config at $HOME/.any-sync.json first, then .any-sync.json in the current directory. If neither exists, tell the user to run the start skill first.

2. Check for Changes

Run the status command to see what has changed:

npx any-sync status "<config-path>" ".any-sync.lock"

Show the user which files have changed (modified or new) across all mappings.

3. Confirm Push

Ask the user to confirm before pushing. Show:

  • Which files will be pushed
  • Which branch they will be pushed to
  • Which repo they will be pushed to

4. Run Push

If confirmed:

npx any-sync push "<config-path>" ".any-sync.lock"

5. Report Results

Parse the JSON output and report:

  • Files pushed
  • Branch updated
  • Any errors encountered

imink/any-sync/tree/main/packages/openclaw-plugin/skills/push commit 4991db1129

Frequently asked questions

npx skillmds@latest add imink/any-sync-push