[Answer] Could someone try out / deeply use and review or compare the domestic R&D cloud services Huawei DevCloud and Alibaba CloudEffect?
![[Answer] Could someone try out / deeply use and review or compare the domestic R&D cloud services Huawei DevCloud and Alibaba CloudEffect?](/_next/image?url=https%3A%2F%2Flxunzzzdnokdqhipbmdf.supabase.co%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fmedia%2Fcovers%2F-b9643fe3.png&w=3840&q=75)
[Answer] Could someone try out / deeply use and review or compare the domestic R&D cloud services Huawei DevCloud and Alibaba CloudEffect?
[Answer] Could someone try out / deeply use and review or compare the domestic R&D cloud services Huawei DevCloud and Alibaba CloudEffect?
1. Creating a software repository in Alibaba CloudEffect
Alibaba CloudEffect is a DevOps platform built by Alibaba. It supports Git as a code management tool, and also provides other additional features. Creating a software repository in Alibaba CloudEffect is similar to doing so on GitHub and other code hosting websites.
Log in to the Alibaba CloudEffect website. As an Alibaba product, CloudEffect supports login via username and password, Alibaba Cloud, Taobao, Alipay, and DingTalk. In enterprise use, CloudEffect can be integrated with DingTalk, and logging in by scanning a DingTalk code is quite convenient. The free version of CloudEffect is similar to GitHub and includes basic code management features, which are sufficient for individuals and small teams. The enterprise edition adds advanced features such as code auditing.
Create a new code repository. When creating a repository in CloudEffect, if the project only needs code management, choose Custom. For project scope, choose either private visibility or organization-wide visibility as needed (company projects usually choose the latter). You can create a built-in beginner guide README.md file and a .gitignore file. In the example below, a .gitignore file is created for a Node project.
Set repository members. In general, enterprise projects require collaboration among multiple members. Add project members according to the following steps. Member roles can be Administrator, Developer, or Viewer. When creating a new project, be sure to grant administrator permissions to the project manager and supervisors.
Import code. If you want to start development from an empty project, you can copy the project address through Clone/Download (SSH is recommended), and then use the git clone command in the terminal to copy the initial repository to your local machine. Develop inside the local directory, and commit the code after development is complete. At present, most projects such as NestJS and Angular are generated using command-line scaffolding tools. By default, scaffolded projects already contain Git files and repository path information. For simplicity, you can copy all files from the local project root directory into the directory cloned via git clone, and then add and commit the code (git add ., git commit -am, git push).
A more correct approach is to perform the following operations in the local project root directory to initialize the repository and push it to the remote repository instead. (For basic Git operations such as setting the global username and email, see the Git tutorial later in this article.)
# Initialize git in the local project root directory
git init
# Create a .gitignore file in the local directory; you can copy this file from the remote repository
# This step is very important to avoid committing unnecessary files
# Add all files in the local working directory (except those ignored by .gitignore)
git add .
# Commit the files in the staging area to the repository; after running this command, add a short commit message
git commit -am
# Add the remote repository URL to the local git repository
git remote add origin
# Push the local code to the remote repository
git push origin master
# Since the default remote repository in CloudEffect is not empty, a version conflict may occur when pushing
# For the first push, you can add the -f flag to force overwrite
git push -f origin master
# Since force overwrite may cause many problems, try to use merge instead except during initialization
# Do not use the -f flag unless absolutely necessary
2. Getting started with Git operations
Alibaba CloudEffect documentation includes very practical and comprehensive quick-start Git documentation. Before doing actual work, be sure to study it carefully so that you are familiar with the basics of Git operations.
Git getting-started documentation in CloudEffect
Commonly used Git commands in practice:
# Synchronize with the remote branch. Before starting work each time, you should run this command
# to avoid conflicts between remote changes and your local changes
git pull
# Create a branch
git checkout -b
# Check git status
git status
# Add all local files
git add .
# Commit local changes
git commit -am
# Push local changes to the remote repository; after each work session, you should commit your code
git push
![[Thought] Many viruses you’ve probably never heard of also contain DNA, such as iridoviruses](/_next/image?url=https%3A%2F%2Flxunzzzdnokdqhipbmdf.supabase.co%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fmedia%2Fcovers%2Fdna-39161584.png&w=3840&q=75)
![[Answer] What did you do on the night you checked your Gaokao score?](/_next/image?url=https%3A%2F%2Flxunzzzdnokdqhipbmdf.supabase.co%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fmedia%2Fcovers%2F-e4a8ec38.png&w=3840&q=75)
![[Answer] How Can You Score 130+ on the Gaokao Math Exam?](/_next/image?url=https%3A%2F%2Flxunzzzdnokdqhipbmdf.supabase.co%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fmedia%2Fcovers%2F130-157dba52.png&w=3840&q=75)