Please follow these steps to get started and migrate your development workflow from GitHub to Gitea.
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:
.git/config DirectlyOpen 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
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.
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)
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.
For SSH URLs:
Use ed25519 SSH keys generated by:
ssh-keygen -t ed25519
Add your SSH public key (~/.ssh/id_ed25519.pub) to your Gitea profile under Settings
> SSH / GPG Keys.
main, dev, uat, and prod branches are
locked.
feature/some-feature, fix/bug).-) or slashes (/) in branch names.Examples:
feature/auth-modulefix/login-bugIf you face any issues during the migration process or repository access, feel free to contact the
durga@mslabs.co.in in Teams for assistance.