返回顶部
g

github-push

Secure GitHub push automation with auto SSH and remote config. Use when git push, automated push, or conflict handling needed.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
281
下载量
0
收藏
概述
安装方式
版本历史

github-push

# GitHub Push - Secure Auto-Push Tool Automated GitHub push with: - **Auto SSH Config**: Auto-detect and load SSH keys - **Auto Remote Config**: Auto-add git remote origin - **Auto Conflict Resolution**: Auto pull + rebase + force - **Anti-Ban Mechanism**: Rate limiting + commit batching + smart validation ## Installation No external dependencies required. Uses standard Git CLI (always available). ## Usage Examples ```bash # Quick push (auto-configures everything) python3 scripts/github_upload.py --repo owner/repo --path ./files --message "Update" # Dry run test (no actual push) python3 scripts/github_upload.py --repo owner/repo --path ./files --dry-run # Force push (auto-resolves conflicts) python3 scripts/github_upload.py --repo owner/repo --path ./files --force # Show version info python3 scripts/github_upload.py --version ``` ## Configuration Create `config.yaml` for persistent settings: ```yaml defaults: safe_mode: true min_delay: 3 # seconds between operations max_delay: 5 # seconds between operations batch_commits: true enable_validation: true dry_run: false safety: max_commits_per_hour: 100 max_pushes_per_hour: 50 min_time_between_pushes: 180 # 3 minutes cooldown ``` ## Safety Thresholds | Metric | Default | Description | |--------|---------|-------------| | Delay between ops | 3-5s | Randomized delay | | Push cooldown | 180s | Min time between pushes | | Max pushes/hour | 50 | Anti-spam limit | | Max commits/hour | 100 | Anti-automation limit | ## Troubleshooting ### Error: "Too frequent pushes" **Solution**: Wait at least 3 minutes before next push. ### Error: "Repository not found" **Solution**: Check repository exists and you have push access. Verify SSH key is added to GitHub. ### Error: "Permission denied (publickey)" **Solution**: ```bash # Load SSH key ssh-add ~/.ssh/id_ed25519 # Verify SSH connection ssh -T git@github.com ``` ### Error: "Merge conflict" **Solution**: The script handles this automatically with `pull + rebase + force`. Check repository state if issue persists. ### Error: "Validation failed" **Solution**: - Check path exists and is accessible - Verify files don't exceed 100MB (GitHub limit) - Check for suspicious patterns (e.g., .env, id_rsa) ## When Not to Use - Just viewing GitHub content - Creating issues or PRs - Code review ## References - `references/` - Detailed config and API docs - `scripts/` - Full code examples --- **MIT License - OpenClaw Skill Standard**

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-push-1775990702 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-push-1775990702 技能

通过命令行安装

skillhub install github-push-1775990702

下载 Zip 包

⬇ 下载 github-push v0.1.0

文件大小: 13.87 KB | 发布时间: 2026-4-13 10:27

v0.1.0 最新 2026-4-13 10:27
GitHub Push v0.1.0

- Initial release of secure GitHub push automation tool.
- Features auto SSH key detection, remote config, and conflict handling (auto pull + rebase + force).
- Implements anti-ban protections: rate limiting, push cooldown, and batching.
- Supports easy configuration via config.yaml for safety thresholds and defaults.
- Includes troubleshooting tips for common errors.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部