Stop hardcoding port

This commit is contained in:
2026-08-04 16:06:20 -03:00
parent 2cdd8c11a3
commit 6f7da8908b
6 changed files with 200 additions and 141 deletions
+3 -3
View File
@@ -41,7 +41,7 @@
- `GITEA_URL` or `GITEA_BASE_URL` for instance URL default.
- `GITEA_OWNER` for default owner or organization.
- `GITEA_TOKEN` or `GITEA_ACCESS_TOKEN` for API token default.
- Git credential prompts are disabled inside `git-tui`; authentication issues are reported in the UI instead of opening an interactive terminal prompt.
- Network Git commands temporarily suspend curses and use the real terminal, allowing normal SSH passphrase, HTTPS credential, and credential-helper prompts.
## Existing Repository Without Remote Flow
@@ -51,8 +51,8 @@
- Continue without remote configuration.
- Quit.
- Connect existing remote flow:
- 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.
- A full clone URL is used unchanged, preserving custom SSH users, aliases, hosts, and ports.
- For `owner/name`, uses the Gitea API to obtain the instance's exact `ssh_url` or `clone_url`; private repository lookup requires an API token.
- Configures remote `origin` to the selected repository URL.
- Inspects both histories and synchronizes automatically when one side can be fast-forwarded.
- If histories diverge, offers merge, replace-local-with-backup, and force-push-with-lease choices.