Project Creation, Import, and Migration
When creating, importing, or migrating projects on the GitCode platform, please pay attention to the following points to ensure a smooth process.
- The path of each project (including organization name and project name) must be unique within the platform. Please check if the path is already in use when creating the project.
- If the project is set to public, all users can access the project content, including code, Issues, Wiki, etc. Ensure that the content is suitable for public sharing.
Operation Entry
Click "New +" at the top of any page to see options for "Create Project" and "Import Project."
Create Project
GitCode allows users to create blank repositories or import repositories from existing projects to better store, track, and collaboratively develop code.
During the creation process, you can:
- Create the project within your GitCode account/organization
- Choose to create a code repository, model repository, or dataset repository based on your needs
- Create both public and private projects
- Initialize the project by selecting README.md, .gitignore, LICENSE files
Create Projects Using Template Modules
GitCode supports quick project creation through template projects. New projects will include all files from the template project and an initial commit, without any historical commits. This feature significantly improves project creation efficiency and helps users easily create standardized projects across different organizations or namespaces.
- Set up template project: In "Project Settings - Basic Settings," check the "Template Project" option to provide template project selection during subsequent new project creations.
- Use template project: When creating a new project, select the checked template project for quick initialization.
Import and Migrate Projects
Import Project
GitCode provides a URL-based project import function, making it easy to bring external repositories into GitCode for further management, collaboration, and version control.
The URL import project feature can help you:
- Migrate projects: Seamlessly migrate external or existing projects to GitCode for better management and collaboration.
- Leverage GitCode features: Enhance project management using GitCode's version control, issue tracking, Pull Requests, etc.
- Cross-platform collaboration: Allow developers from different platforms to collaborate, making the project more flexible and scalable.
If the imported project is private, you need to provide credentials for the source hosting platform, supporting personal access tokens (PATs) or "username + password" methods.
The import steps are as follows:
- Choose the project type based on your needs: code repository, model repository, or dataset repository.
- Enter the Git project URL; the URL must be accessible and end with
.git
. - Private project settings (optional): If the imported project is private, you also need to provide credentials for the source hosting platform, supporting personal access tokens (PATs) or username + password methods.
- Select the account the project belongs to: choose the GitCode account/organization where the repository will be imported.
- Configure import options: Customize import options according to your needs, such as project name, path description, whether it is public, etc.
- Wait for the import to complete: GitCode will start importing the project, and you can view the import progress on the import progress page.
Here are best practices for using the URL-based project import feature:
- Ensure the external repository's URL is publicly accessible before importing (private projects require prior preparation of corresponding credentials).
- Carefully configure import options to ensure the import process meets your project requirements.
- Regularly synchronize and update the imported repository after import to keep it in sync with the external project.
Migrate Project
GitCode project migration allows you to directly import projects from GitHub, Gitee, GitLab without manually cloning and pushing the project. Just provide your GitHub, Gitee, GitLab personal access token (PAT), and select the project to be imported. GitCode will handle the rest.
Currently, only project Git repositories can be migrated. Project Wiki, Issues, PRs, and Releases are not supported for migration and import.