/migrate — Mirror to Personal GitHub
Зеркалирует текущий git-проект в личный GitHub аккаунт, переписывая авторов коммитов под личную идентичность.
Execution
Run immediately from the project root (do NOT ask for confirmation):
bash ~/.claude/skills/migrate/migrate.sh
Stream all output to the user. The script:
- Loads credentials from
~/.claude/secrets.env - Checks if the repo exists under personal account — creates private repo if not
- Bare-clones the project locally to a temp directory
- Rewrites ALL commit authors →
Mikhail Alabugin <mmalabugin@gmail.com> - Force-pushes all branches and tags to personal GitHub
- Prints the final URL and exits cleanly
Notes
- Force-push is intentional — this is a mirror pattern, not a shared branch
- Uses
git-filter-repoif installed (faster), falls back togit filter-branch - Token is in
~/.claude/secrets.env— never print it in output - If the script fails mid-way, temp dir is auto-cleaned by the EXIT trap