git-migratea

command
v0.0.0-...-8b0af0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 9 Imported by: 0

README

#+TITLE: git-migratea

Import git repositories to an instance of gitea. Importing means:
- creating a repository in gitea using the API
- using the SSH URL for cloning
- setting the remote to be origin on the repos, with the new value
- pushing with =git push -u origin --all=

** Usage
#+begin_src sh
GIT_REPOS=~/workspace/tmp/repositories GITEA_URL=https://git.fcuny.net GITEA_API_KEY=<API_KEY> ./git-migratea
#+end_src

You need to generate an API key for the migration (for example from [[https://git.fcuny.net/user/settings/applications][settings/applications]]) and set the environment variable =GITEA_API_KEY= to its value. You'll also need to point to the list of repositories (on disk) to migrate.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL