Files
owngit/.env.example
PTah 72746cf415
Scripts And Docs Check / shellcheck (push) Has been cancelled
Scripts And Docs Check / markdown-links (push) Has been cancelled
feat(migrate): GITHUB_REPOS and GITHUB_REPOS_FILE for selective import
Made-with: Cursor
2026-04-22 15:46:09 +10:00

28 lines
1.1 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GitHub source
GITHUB_TOKEN=ghp_xxx
GITHUB_OWNER=your_github_user_or_org
GITHUB_OWNER_TYPE=user
# Gitea target
GITEA_URL=https://git.papatramp.ru
GITEA_TOKEN=gitea_pat_xxx
GITEA_OWNER=your_gitea_user_or_org
GITEA_OWNER_TYPE=user
# Push strategy
# На своём ПК можно оставить true (SSH-ключ уже в Gitea).
# Если скрипт запускается НА СЕРВЕРЕ с Gitea/root — ставьте false и задайте GITEA_USERNAME (ключ на сервере часто отсутствует).
PUSH_WITH_SSH=true
GITEA_SSH_HOST=git.papatramp.ru
GITEA_SSH_PORT=2222
# Обязательно при PUSH_WITH_SSH=false — логин владельца в Gitea (пуш по HTTPS с GITEA_TOKEN как пароль)
GITEA_USERNAME=your_gitea_username
# Optional behavior
MIGRATE_LFS=true
WORKDIR=./migration-workdir
# Только указанные репозитории GitHub (полное имя owner/repo). Если задано — общий список с GitHub не опрашивается.
# GITHUB_REPOS=PTah/repo1,PTah/repo2
# GITHUB_REPOS_FILE=/path/repos-to-migrate.txt