Updated on 2025-01-08 GMT+08:00

Configuring a GitLab Project

  1. Obtain the source code and save it to the local. A Java example is used.
  2. Create the ccedemo group on GitLab.

  3. Add the java-demo project to the ccedemo group.

  4. Upload the project code to the local GitLab repository.

    cd ~/java-demo-main   //Change the directory address as needed.
    git init
    git remote add origin http://**.**.**.**/ccedemo/java-demo.git  // Project URL of java-demo in step 3
    git config --global user.name "Administrator"
    git config --global user.email "admin@example.com"
    git add .
    git commit -m "Initial commit"
    git push -u origin main

    Enter the user name root and its password. (If the default password is not changed, obtain it by referring to 6.)