Auto-sync: 2026-02-13 13:19:12

This commit is contained in:
Adolfo Reyna
2026-02-13 13:19:12 -05:00
parent be83035088
commit 74f9a21c30
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Repo Sync
Description: Sync the current workspace to the configured git repository. Use this after making significant changes to files.
## Tools
### sync
Description: Commit and push all current changes to the remote repository.
Command: ./skills/repo-sync/sync.sh

12
skills/repo-sync/sync.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
cd /Users/adolforeyna/.openclaw/workspace
# Check if there are changes
if [[ -n $(git status -s) ]]; then
git add .
git commit -m "Auto-sync: $(date '+%Y-%m-%d %H:%M:%S')"
git push origin main
echo "Synced changes to repo."
else
echo "No changes to sync."
fi