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
createcommand:oci devops repository create --name --project-id --repository-typeTo view a list of repositories, run the
listcommand:oci devops repository list --compartment-id or --project-idTo view a list of commits, run the
list-commitscommand:oci devops repository list-commits --repository-idTo get all the commands for
repository:oci devops repository -hTo create a code repository, use the
CreateRepositoryoperation.To view a list of commits to the repository, use the
ListCommitsoperation.To view a list of repositories, use the
ListRepositoriesoperation.