Skip to main content
The wit repo command provides repository management operations, including transferring repositories between users and organizations.

Overview

Commands

transfer

Transfer repository ownership to another user or organization.

Arguments

Options

Examples

Example Output


Requirements

Permissions

To transfer a repository:
  1. To a user: You must be the repository owner
  2. To an organization: You must be the repository owner AND an admin/owner of the target organization

Authentication

Repository transfer requires authentication:

What Gets Transferred

When you transfer a repository, the following are preserved:

Workflow Examples

Personal to Organization

Move a personal project to your company:

Hand Off to New Maintainer

Transfer ownership of a project:

Organizational Restructure

Move repositories between organizations:

After Transfer Checklist

After transferring a repository, update:
  • Local git remotes (git remote set-url origin ...)
  • CI/CD configurations (GitHub Actions, Jenkins, etc.)
  • Documentation links
  • Package registry references (npm, PyPI, etc.)
  • Dependency URLs in other projects
  • Bookmarks and saved links
  • Deployment scripts
  • Monitoring and alerting configurations

Error Handling

Common Errors

  • Verify the repository path is correct
  • Ensure you have access to the repository
  • Check that you’re authenticated
  • Verify the username or organization slug
  • Use --org flag when transferring to an organization
  • Check that the target account exists
  • Only repository owners can initiate transfers
  • You need admin/owner role in the target organization
  • Check your permissions in both source and target
  • The target owner already has a repository with that name
  • Rename one of the repositories before transferring
  • Or delete the existing repository if it’s not needed
Set your authentication token:
Or authenticate via the web UI and create a token.

Best Practices

Before transferring, inform all collaborators about the upcoming change and the new URL they’ll need to use.
If possible, update CI/CD configurations before the transfer or have them ready to deploy immediately after.
If other projects depend on this repository, plan how you’ll update those references.
After transferring, verify that:
  • Collaborators can still access the repository
  • CI/CD pipelines work with new URLs
  • Webhooks are firing correctly

Environment Variables