Files
tekton/GIT_CLONE_TUTORIAL.md
T

47 lines
1.1 KiB
Markdown

# Clone Tekton from Gitea
## Prerequisites
- You have a Gitea account at `https://git.klud.top`.
- For SSH clone: your public SSH key is added at `https://git.klud.top/user/settings/keys`.
## SSH clone (preferred)
Test SSH:
```bash
ssh -T git@ssh.git.klud.top
```
Expected output:
```text
Hi there, <yourname>! You've successfully authenticated with the key named <key-title>, but Gitea does not provide shell access.
```
Clone:
```bash
git clone git@ssh.git.klud.top:danchie/tekton.git
```
## HTTPS clone
```bash
git clone https://git.klud.top/danchie/tekton.git
```
Use HTTPS when SSH keys are not available, e.g. CI scripts or temporary machines.
## Tea CLI
```bash
tea repos clone --git-protocol ssh danchie/tekton
```
## Troubleshooting
- **`Permission denied (publickey)`** — Your key was not added in Gitea, or your SSH agent has not loaded it. Run `ssh-add ~/.ssh/id_ed25519`.
- **`Host key verification failed`** — Run `ssh -T git@ssh.git.klud.top` interactively once and accept the fingerprint.
- **`Could not resolve hostname ssh.git.klud.top`** — DNS cache stale. Wait a few minutes or flush DNS.