From claude-resources
Copies files from old repo to new remote, strips commit history, purges private info, commits and pushes for fresh start without history.
npx claudepluginhub takazudo/claude-resources<old-repo-path> <new-repo-path>This skill uses the workspace's default tool permissions.
Move all files from an old repo to a new repo, intentionally losing commit history. Purge private/client info from the new repo before pushing. The old repo is left untouched.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Move all files from an old repo to a new repo, intentionally losing commit history. Purge private/client info from the new repo before pushing. The old repo is left untouched.
$0 — Path to the old (source) repo$1 — Path to the new (destination) repoIf arguments are not provided, ask the user for both paths.
Confirm $0 exists and is a git repo
Confirm $1 exists. If it is not a git repo yet, run git init and create an initial empty commit:
git commit --allow-empty -m "Initial commit"
Confirm $1 has a remote configured (git remote -v). If not, ask the user for the remote URL and add it.
$0 to $1, excluding .git/ directoryrsync -av --exclude='.git' <old>/ <new>/ for reliable copyRun /purge-private-info on the NEW repo ($1) to scan and clean private/client information.
/commits on the new repo to commit all filesgit push -u origin main (or the appropriate branch name)Ask the user if they want to update the old repo's remote to point to the new repo. If yes:
$1: git -C $1 remote get-url origingit -C $0 remote set-url origin <new-url>Report what was done: