用户希望把当前本地 TagLauncher App 最新代码接入自建 Git 服务器管理,并采用更正常的 main 主分支工作流。自建仓库地址:
https://git.boborobots.com/r/crazy-macs/tag-launcher.git
selfhost。main。codex/pro-custom-hotkeys-8.2.0 改名为 main。main 跟踪 selfhost/main。main 保留为 github-pages-main-legacy,避免覆盖或丢失旧引用。v8.3.5-build20260702.1046。origin 不变,官网/GitHub Pages worktree 不受影响。/Users/ar/Projects/Taglauncherselfhosthttps://git.boborobots.com/r/crazy-macs/tag-launcher.gitmainselfhost/main2309264ee94daca4b9abe3592d84602c98b77690v8.3.5-build20260702.1046refs/heads/main -> 2309264ee94daca4b9abe3592d84602c98b77690refs/tags/v8.3.5-build20260702.1046 -> annotated tag b492589d6adde01f4ce991cd4dab6e51e7378c23,peeled commit 2309264ee94daca4b9abe3592d84602c98b77690main 改名为 github-pages-main-legacy,仍指向旧 commit 4a3f302 并跟踪 GitHub origin/main。origin:未修改;仍为 https://github.com/shanghai3168/taglauncher.git。git status -sb:## main...selfhost/main,工作区干净。git push --dry-run:Everything up-to-date。git rev-parse HEAD 与 git rev-parse selfhost/main 均为 2309264ee94daca4b9abe3592d84602c98b77690。git ls-remote --heads --tags selfhost 返回远端 main 和当前 release tag。HEAD branch 仍显示 (unknown);本地已设置 selfhost/HEAD -> selfhost/main,但服务端默认分支是否显示为 main 可能需要在自建 Git 服务网页/管理界面配置。用途:以后复核 TagLauncher 自建远端主线、upstream 和发布 tag。
前置条件:在主工作区执行:
cd /Users/ar/Projects/Taglauncher
查看 remote:
git remote -v
查看本地分支与 upstream:
git status -sb
git branch -vv
确认自建远端 main 和 tag:
git ls-remote --heads --tags selfhost
确认当前 HEAD 与 selfhost/main 一致:
git rev-parse HEAD
git rev-parse selfhost/main
普通推送 dry-run:
git push --dry-run
本轮实际接入命令快照:
git remote add selfhost https://git.boborobots.com/r/crazy-macs/tag-launcher.git
git push -u selfhost HEAD:refs/heads/main
git push selfhost v8.3.5-build20260702.1046
git branch -m main github-pages-main-legacy
git branch -m main
git remote set-head selfhost main
注意:本轮没有把用户提供的账号密码写入 Git remote URL、Git config 或项目文件;实际推送未要求写入凭据。
搜索关键词:selfhost、git.boborobots.com、tag-launcher.git、codex/pro-custom-hotkeys-8.2.0、github-pages-main-legacy、v8.3.5-build20260702.1046。
HEAD branch 仍未通过 Git 广告为 main;如网页端也显示未知,需要在自建 Git 服务管理界面把默认分支设为 main。main 为主线,普通 git pull / git push 将对接 selfhost/main。origin/main 维护,不与 App 自建远端主线混用。