Create Repositories
Create repositories in Harness Code
Repositories are where your code is stored. When developers make changes to code in a Harness Code repository, those changes are tracked with version control. Harness Code fosters collaboration and governance with code reviews, approvals, status checks, and more.
You can create repositories directly in Harness Code or import repositories from other Git SCM providers.
Create a repository
In the Harness Code module, make sure you are at the scope where you want to create the repository.
You can create repos at the account, organization, or project scope. For example, a repo created at the account scope is available to the entire account, whereas a repo created at the project scope is limited to that project.
Select Repositories, and then select New Repository.
Enter a repository Name and optional Description.
Repository names cannot contain the following strings:
account. org. project. .gitHarness Code repositories are initialized with a
mainbranch, unless you specify a different name for the base branch. To change the base branch name, selectmainand enter a name for the base branch.Select your preference for visibility (Public or Private).
Optionally, you can add a License, .gitignore, or README file to your repository.
Select Create Repository.
Work with repositories
After creating a repository, you can:
Use Harness Code repositories in your Harness pipelines.
Set up triggers to automatically run pipelines based on activity in your Harness Code repositories.
Configure webhooks to integrate your repositories with third-party applications.
Last updated
Was this helpful?