Версия:

GitFlic instead of GitHub

This guide describes the process of migrating the GoCore project repository from GitHub to GitFlic and configuring secure SSH access.

Repository Migration

To migrate a repository to https://gitflic.ru/, follow these steps:

  1. Creating an Access Token on GitHub:

    • Go to the repository owner’s account on GitHub.
    • Navigate to settings: Settings -> Developer settings -> Personal access tokens (direct link).
    • Create a new token (Fine-grained or Classic).
    • Select the required repository and specify access permissions (Contents (ReadOnly)).
  2. Importing to GitFlic:

    • Go to GitFlic and select: Create new project -> Import.
    • Specify the GitHub username and the obtained token.
    • Start the import process.

Local Environment Setup

To add a new remote repository and get the list of branches:

  1. Adding a remote:

    git remote add gitflic https://gitflic.ru/repo/YOUR_LOGIN/YOUR_REPOSITORY.git
    
  2. SSH Key Configuration: Since WebStorm (and other JetBrains products) may lack direct integration with GitFlic via account, it is recommended to use a public key (SSH).

    • Key Generation (in a terminal, e.g., Git Bash):
      ssh-keygen -t ed25519 -C "your_email@example.com"
      
    • Viewing the Key:
      cat ~/.ssh/id_ed25519.pub
      
    • Adding the Key to GitFlic: Copy the key content and add it in the user settings on GitFlic.
  3. Fetching Branches:

    git fetch gitflic
    

Note: When trying to checkout a branch (e.g., master) from GitFlic, if a local branch with the same name already exists, the system may not allow using the same name. In this case, the local branch can be named, for example, gitflic-master.