Associating an existing folder or repository

更新时间:
复制 MD 格式

This document explains how to associate a local folder or migrate an existing repository to Codeup.

Associate a local folder

Uploading files individually is inefficient. You can instead associate an entire local project folder and push it to Codeup. Navigate to your project directory and run the following commands:

cd existing_folder
git init
git remote add origin https://codeup.aliyun.com/xxx/xxx.git
git add .
git commit
git push -u origin master

These Git commands are also available in the command-line instructions section on the empty repository page in Codeup.

Import a third-party repository

You can import a third-party repository in two ways:

  • Command line:

    git clone --bare https://git.example.com/your/project.git your_path
    cd your_path
    git remote set-url origin https://codeup.xxxx.git
    git push --mirror
  • From the Codeup console: Import a third-party repository.