Freshclone banner
mathaix mathaix

Freshclone

Development community

Description

# Fresh Clone When the user needs a clean clone of the repository (e.g., after unresolvable conflicts or corrupted state): 1. Record the current branch name and remote URL: ```bash git branch --show-current git remote get-url origin ``` 2. Check for any uncommitted changes and warn the user if there are any: ```bash git status --short ``` 3. Move to the parent directory and rename the existing folder as a backup: ```bash mv <repo-dir> <repo-dir>-backup-$(date +%s)

Installation

Installs to ~/.claude/commands/mathaix-openclawmachines-freshclone.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/mathaix/OpenClawMachines/HEAD/.claude/commands/freshclone.md -o ~/.claude/commands/mathaix-openclawmachines-freshclone.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository