View and Manage Code Repositories
This section describes how to view code repository details and modify files within a repository.
Prerequisites
-
The DevOps extension must be installed and enabled on the KubeSphere platform.
-
A workspace, a DevOps project, and a user (e.g., project-regular) have been created. The user has been invited to the DevOps project and granted the operator role. Refer to Invite a User to a DevOps Project.
Steps
-
Log in to the KubeSphere console as the project-regular user and enter your workspace.
-
Click DevOps > Code Repositories in the left navigation pane.
-
Select a DevOps project from the drop-down list in the upper left corner of the page.
-
In the code repository list, click the name of a repository to open its details page.
-
On the details page, select a branch in the upper-left corner to view the files in the repository.
-
Click the search box and enter keywords to search for files.
-
Click
to refresh the directory. -
Click
at the top to collapse the directory tree area. Click
again to expand the directory tree area.
-
-
Click
or Upload File to upload a file or directory (a compressed package in tgz or tar.gz format) to the code repository. The file or directory will be uploaded to the currently selected path.
Note Ensure you have write permissions for the current repository.
-
Under More Actions, click Copy Path to copy the path of the currently selected file or directory; click Delete to delete the currently selected file or directory.
If the selected object is a file, you can also edit the file, copy the file content, and download the file.