Create Generic Git Credential
Create a stored HTTPS credential for a repository configured with a generic Git upstream.
Deprecated: Use /api/repos/{repo_name}/git-credentials instead.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Store HTTPS credentials for a generic Git upstream such as GitLab, Bitbucket, Gitea, Forgejo, Codeberg, or SourceHut.
Request body for storing a new HTTPS Git credential against a repository configured for a generic Git provider.
Password or access token for the upstream provider.
"glpat_xxxxxxxxxxxx"
Repository identifier returned when the repository was created.
"repo_7f2b3d9"
Optional username for HTTPS authentication. Omit it for token-only providers.
"git"
Response
Credential created successfully.