Add onboarding to connect repos without remotes
This commit is contained in:
@@ -44,6 +44,19 @@
|
||||
- `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.
|
||||
|
||||
## Existing Repository Without Remote Flow
|
||||
|
||||
- If the current directory is already a Git repository and has no remotes configured, `git-tui` offers startup actions:
|
||||
- Connect to an existing remote repository.
|
||||
- Continue without remote configuration.
|
||||
- Quit.
|
||||
- Connect existing remote flow:
|
||||
- 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.
|
||||
- Configures remote `origin` to the selected repository URL.
|
||||
- Optionally pushes current branch with upstream tracking (`git push -u origin <branch>`).
|
||||
|
||||
## Key Commands in UI
|
||||
|
||||
- Main menu:
|
||||
|
||||
Reference in New Issue
Block a user