Gitea Migration: Quick Start Guide

Please follow these steps to get started and migrate your development workflow from GitHub to Gitea.

1. Log In to Gitea

2. Find Your Repositories

3. Update Repository URLs Locally

Verify the current remote URL

Run this command in your repository folder to see the current remote URL:

git remote -v

Expected output should show both fetch and push URLs pointing to your current GitHub repository, for example:

origin  https://github.com/mslpro/iob-nest-api.git (fetch)
origin  https://github.com/mslpro/iob-nest-api.git (push)

There are two ways to update the Git remote URL in your local project:

Method 1: Edit .git/config Directly

Open the .git/config file in your project directory and update the url value:

[remote "origin"]
    url = https://git.mslabs.in/your-org/your-repo.git

Method 2: Use Git Command

Run this command in your repository folder:

git remote set-url origin https://git.mslabs.in/your-org/your-repo.git

Replace https://git.mslabs.in/your-org/your-repo.git with the new repository address as listed in the Google Sheet.

Verify Change to Remote URL

After updating the URL, verify it with:

git remote -v

Expected output should show both fetch and push URLs pointing to your new Gitea repository, for example:

origin  https://git.mslabs.in/your-org/your-repo.git (fetch)
origin  https://git.mslabs.in/your-org/your-repo.git (push)

Test Authentication & Connectivity

Fetch from the new remote to test authentication and connection:

git fetch

This command will prompt for authentication if needed (using PAT for HTTP or SSH keys for SSH URLs) and verify connectivity to the new Gitea instance.

4. Authentication Options (For Remote Development Only)

Windows Users

Linux Users

5. Commit & Branch Rules

Examples:

Need Help?

If you face any issues during the migration process or repository access, feel free to contact the durga@mslabs.co.in in Teams for assistance.