Ask for SSH or HTTPS

This commit is contained in:
2026-08-04 15:33:41 -03:00
parent 945fdf3dd6
commit 8154ca101a
6 changed files with 140 additions and 5 deletions
+1 -1
View File
@@ -17,7 +17,7 @@
- Gitea via HTTPS API and token-authenticated initial push.
- Executes provider-specific connection to existing remote repositories:
- GitHub by resolving owner or URL input to `origin`.
- Gitea by resolving owner and base URL or URL input to `origin`.
- Gitea by resolving owner, base URL, and SSH/HTTPS transport or full URL input to `origin`.
- Implements file selection for staged and unstaged operations.
## Public API and Contracts
+1
View File
@@ -54,6 +54,7 @@
- Chooses provider: GitHub or Gitea.
- GitHub accepts `owner/name` or full clone URL input.
- Gitea accepts `owner/name` or full clone URL input, and uses `GITEA_URL` or `GITEA_BASE_URL` defaults when a base URL is needed.
- For Gitea `owner/name` input, chooses SSH (the default) or HTTPS transport. SSH uses `GITEA_SSH_USER` (default `git`) and optional `GITEA_SSH_PORT`; HTTPS uses the configured Git credential helper.
- Configures remote `origin` to the selected repository URL.
- Optionally pushes current branch with upstream tracking (`git push -u origin <branch>`).