Any Sync Push

Push local workspace changes directly to configured branch on GitHub

imink 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 commit 4991db1129 Runs: imink/start

Frequently asked questions

npx get-skill add imink/any-sync-push