1
Fork 0
mirror of https://github.com/RGBCube/GitHub2Forgejo synced 2025-05-31 10:48:11 +00:00
No description
Find a file
2024-05-29 10:44:34 +03:00
.gitignore Add flake 2024-05-29 10:30:14 +03:00
flake.lock Add flake 2024-05-29 10:30:14 +03:00
flake.nix Fix typo 2024-05-29 10:44:34 +03:00
github2forgejo Color deleted repo URL 2024-05-28 23:12:49 +03:00
LICENSE.md Initial commit 2024-02-07 16:26:00 +03:00
package.nix Add package.nix 2024-05-29 10:01:10 +03:00
README.md Rename shell script file 2024-05-28 23:04:42 +03:00

GitHub to Forgejo Migration Script

Plain simple, just install Nushell and run the script:

./github2forgejo --help

You can either specify all the environment variables for a uninteractive run, or run the script like so:

./github2forgejo

And get a nice interactive experience.

This works on any Forgejo instance.

FAQ

What is the difference between mirroring and cloning?

  • Mirroring: Will get updated every now and then, keeping the repository in sync with the remote.

  • Cloning: Will only clone the remote, and will not update or link to it anywhere in the repository. This is good for when you are migrating off GitHub permanently and will never come back.

Can I migrate specific repositories?

Nope. Just use the Forgejo web UI for that.

License

Copyright (C) 2024-present  RGBCube

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.