Manage to clone a repository
The repository that you create on DevOps Control is a remote repository. You can clone the remote repository to create a local copy on your computer and sync it between the two locations. From this topic, you will learn how to manage a clone.
To manage to clone a repository:
- Using an SSH key (for Desktop): First, install your SSH public key in your account settings by navigating to the top right avatar menu > Settings, and then select SSH/GPG keys. Ensure you use either a DSA key or an ed25519 key. Note that RSA keys are not supported.
- Using HTTPS (not with OAuth2 support): Your username is the same as the one you use to log in. Instead of your password, use a personal access token created from the Access Tokens user setting. This token only requires read-write permissions for the repository category.
- Using Git Clients (with OAuth2 Support): Some Git clients offer integration with a git-credential-manager that supports OAuth2 connections.
Before attempting to clone, create a configuration stanza in your
~/.gitconfig. You can create it with commands such as the following, replacing yourhost.example.com with the hostname of your DevOps Automation server:
git config --global --set credential.https://yourhost.example.com.provider generic
git config --global --add credential.https://yourhost.example.com.oauthClientId e90ee53c-94e2-48ac-9358-a874fb9e0662
git config --global --add credential.https://yourhost.example.com.oauthAuthorizeEndpoint /control/login/oauth/authorize
git config --global --add credential.https://yourhost.example.com.oauthTokenEndpoint /control/login/oauth/access_token