Creating a Repository
Create code repositories in the DevOps service.
Each service in Oracle Cloud Infrastructure (OCI) integrates with Identity and Access Management (IAM) for authentication and authorization. To grant users permission to access the DevOps code repositories and other resources, you have to create dynamic groups and IAM policies.
For creating dynamic groups and policies for code repositories, see Code Repository Policies. For more details, see DevOps IAM Policies.
An authentication (auth) token is required for each user who uses Git to interact with the code repositories in Oracle Cloud.
Before you create a code repository, you must have a DevOps project.
For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.
To add files to the repository, you must clone the repository. For more information, see Cloning a Repository.
To create a code repository, run the
create
command:oci devops repository create --name --project-id --repository-type
To view a list of repositories, run the
list
command:oci devops repository list --compartment-id or --project-id
To view a list of commits, run the
list-commits
command:oci devops repository list-commits --repository-id
To get all the commands for
repository
:oci devops repository -h
To create a code repository, use the
CreateRepository
operation.To view a list of commits to the repository, use the
ListCommits
operation.To view a list of repositories, use the
ListRepositories
operation.