このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Managing Files

Updated on 2024-12-12 GMT+08:00

CodeArts Repo allows you to edit and compare files, and trace file changes.

When you access the repository details console, you will be on the Files subtab of the Code tab page. You can switch to different branches and tags to view the files in the corresponding version. As shown in the following figure, the file list under the main branch is displayed on the left, the repository name (file details of a branch or tag version) and history (branch or tag version) tab pages are displayed on the right.

File List

The file list is on the left of the Files tab page of the repository. The file list provides the following functions:

  1. Click a branch name to switch the branch and tag. After the branch and tag are switched, the file directory of the corresponding version is displayed.

  2. Click to display the search box. You can search for files in the file list.

  3. Click . The following functions can be extended:
    NOTICE:

    Multi-level directories are supported when you create a file, rename a file, create a directory, or create a submodule. Separate multi-level directories with slashes (/), for example, java/com.

    • Creating a file

      Creating a file on the CodeArts Repo console is to create a file and run the add, commit, and push commands. A commit record is generated.

      On the Create File page, enter the file name, select the target template type, select the encoding type, enter the file content and commit information, and click OK.

      NOTE:

      The Commit Message field is equivalent to the -m message in git commit and can be used to view associated work items by referring to 11.7.

    • Creating a directory

      Creating a directory on the CodeArts Repo console is to create a folder structure, and run the add, commit, and push commands. A commit record is generated.

      A .gitkeep file is created at the bottom of the directory by default because Git does not allow a commit of an empty folder.

      On the Create Directory page, enter the catalog name and commit information, and click OK.

    • Create a submodule
    • Uploading a file

      Uploading a file on the CodeArts Repo console is to create a file and run the add, commit, and push commands. A commit record is generated.

      On the Upload File page, select the target file to be uploaded, enter the commit information, and click OK.

    NOTE:

    Move the cursor to the folder name and click to perform the preceding operations in the folder.

  4. Move the cursor to the file name and click to change the file name.

    Renaming a file on the CodeArts Repo console is to change a file name, and run the add, commit, and push commands. A commit record is generated.

  5. You can click a file name to display the file content on the right of the page. You can modify the file content, trace file modification records, view historical records, and compare the file content.

Repository Name Tab Page: Viewing File Details of a Branch or Tag Version

By default, the repository name tab page displays file details of the master branch.

It displays the following information:

  • File: name of a file or folder.
  • Commit message: message of the last commit to the file or folder (-m in the commit command). You can click the message to display the commit record.
  • Creator: creator of the last commit to the file or folder.
  • Update time: last update time of the file or folder.
NOTE:

Commit messages are required for the edit and delete operations. These operations are similar to -m in the git commit command and can be used to view associated work items by referring to 11.7.

History Tab: Viewing the Commit History of a Branch or Tag Version

The History tab page displays the commit history of a branch or tag version.

On this page, you can perform the following operations on the commit history:

  • Click a commit name to go to the commit details page.
  • Click to extend the following functions:
    • Create Branch.
    • Create Tag: You can create a tag for this commit.(What is a tag?)
    • Cherry-Pick: Use the commit as the latest commit to overwrite a branch. It is used to retrieve a version.
    • Revert: undoing this commit
    • Browse Code.

Managing Repository Files

You can click a file name to manage the file. The functions are as follows:

NOTE:

When you maximize the browser window, the functions in the drop-down menu shown in the preceding figure are displayed in tile mode.

  • File name: View the detailed content of the file.
    Table 1 Screen description

    Screen Function

    Function Description

    File Capacity

    Indicates the capacity of the file.

    Full Screen

    Full screen to view the file content

    Copy Code

    Copy the file content to the clipboard.

    Open Raw

    You can view the original data of the file.

    Edit

    Edit the file online.

    Download

    Download the file to the local PC.

    Delete

    Delete a file

    File content

    The email content is displayed.

    Click this icon to add review comments.

  • Blame: View the change history of a file and trace operations.

    On this tab page, a modifier corresponds to their modified content. You can a record to view the commit details.

  • History: View the commit history of the file.

    On this page, you can perform the following operations on the commit history:

    • Click a commit name to go to the commit details page.
    • provides the following functions:
      • Create Branch.
      • Create Tag: You can create a tag for this commit. (What is a tag?)
      • Cherry-Pick: Use the commit as the latest commit to overwrite a branch. It is used to retrieve a version.
      • Revert: undoing this commit
      • Browse Code.
  • Comparison: compares the committed differences.

    The differences compared on the CodeArts Repo console are displayed in a better way than those on the Git Bash client. You can select different commit batches on the GUI for difference comparison.

    NOTE:

    The comparison result shows the impact of merging from the left repository version to the right repository version on the files in the right repository. If you want to know the differences between the two file versions, you can adjust the left and right positions, compare them again, and learn all the differences based on the two results.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback