This is a script to migrate a repository from GitHub to Codeberg. The original script is of course hosted on Codeberg: https://codeberg.org/joergi/migrate_github_repo_to_codeberg
You need to create a PAT (Personal Access Token) at Codeberg.
Also: This script was only used with SSH keys, not with HTTPS, both on GitHub and on Codeberg. Feel free to modify it for your needs.
./migrate.sh https://github.com/YOUR_GITHUB_USERNAME/YOUR_GITHUB_REPO_YOU_WANT_TO_MIGRATE
./migrate.sh [email protected]:YOUR_GITHUB_USERNAME/YOUR_GITHUB_REPO_YOU_WANT_TO_MIGRATE.gitThe script was build together with the help of an AI.