Repository Management
Importing Git Repositories
You can import other git repositories, including local and cloned ones:
Create an aptly named repository on Gitea, intialize it empty.
Push a mirror to this repository. All information will be retained.
Disable SSL verification if using self-signed certs.
cd my-repo-to-import
git push --mirror https://{IP}:3000/{USER}/{REPO}.git
As this is a mirror, you want to commit the git metadata and not just the
files. The git repository is stored in gitea_repository_root
as a standard
git repository. Importing this way sets up the Gitea frontend database metadata
for the project.
Mirrors
Gitea mirrors can automaticallly manage upstream mirror syncs if setup to do so. This will also allow for local forking of those mirrors for indiviudal use.
Create Mirror
› New Migration
Migrate / Clone from URL
{REMOTE REPOSITORY URL}
Owner
{ORGANIZATION OWNER}
Repository Name
{SAME REPO NAME}
Visibility
☑ Make Repository Private
Migration Type
☑ This repository will be a mirror
Description
DESCRIPTION
Updated: None