docs: forgejo/ht default_branch = master (not main)
This commit is contained in:
parent
5196ac5db8
commit
b19b1d3cf6
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
| Host | **Forgejo rootless** `https://git.hacktivism.ch/` |
|
| Host | **Forgejo rootless** `https://git.hacktivism.ch/` |
|
||||||
| Repo | **hernani/git** (meta-repo: non-secret globals only) |
|
| Repo | **hernani/git** (meta-repo: non-secret globals only) |
|
||||||
| Visibility | **private** (`DEFAULT_PRIVATE` template is public — create with `private:true`) |
|
| Visibility | **private** (`DEFAULT_PRIVATE` template is public — create with `private:true`) |
|
||||||
| Default branch | `main` |
|
| Default branch | `master` (forgejo/ht SoT — never `main`) |
|
||||||
| SSH clone (FQDN form) | `git@git.hacktivism.ch:hernani/git.git` |
|
| SSH clone (FQDN form) | `git@git.hacktivism.ch:hernani/git.git` |
|
||||||
| SSH URL (API form) | `ssh://git@git.hacktivism.ch:9200/hernani/git.git` |
|
| SSH URL (API form) | `ssh://git@git.hacktivism.ch:9200/hernani/git.git` |
|
||||||
| Local tree | `$HOME/git/` (`PATH[git-root]`) |
|
| Local tree | `$HOME/git/` (`PATH[git-root]`) |
|
||||||
|
|
@ -19,7 +19,7 @@ Unauth HTTPS browse of a private repo → **404** (expected).
|
||||||
```bash
|
```bash
|
||||||
cd "$HOME/git"
|
cd "$HOME/git"
|
||||||
git remote add origin git@git.hacktivism.ch:hernani/git.git
|
git remote add origin git@git.hacktivism.ch:hernani/git.git
|
||||||
git push -u origin main
|
git push -u origin master
|
||||||
```
|
```
|
||||||
|
|
||||||
SSH Host `git.hacktivism.ch`: `HostName 127.0.0.1`, `Port 9200`, `User git`, `ProxyJump hernani@koopa`, `IdentityFile ~/.ssh/id_ed25519`.
|
SSH Host `git.hacktivism.ch`: `HostName 127.0.0.1`, `Port 9200`, `User git`, `ProxyJump hernani@koopa`, `IdentityFile ~/.ssh/id_ed25519`.
|
||||||
|
|
@ -40,7 +40,7 @@ podman exec koopa-forgejo gitea admin user generate-access-token \
|
||||||
curl -sS -X POST \
|
curl -sS -X POST \
|
||||||
-H "Authorization: token ${TOKEN}" \
|
-H "Authorization: token ${TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"name":"git","private":true,"auto_init":false,"default_branch":"main"}' \
|
-d '{"name":"git","private":true,"auto_init":false,"default_branch":"master"}' \
|
||||||
http://127.0.0.1:9024/api/v1/admin/users/hernani/repos
|
http://127.0.0.1:9024/api/v1/admin/users/hernani/repos
|
||||||
# expect HTTP 201, full_name=hernani/git
|
# expect HTTP 201, full_name=hernani/git
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue