gitlab服务器创建分支日志(主要涉及 通过git push 在远程创建分支的记录):
k8s@HPDEV-31:~/code/yizhi-frontend-v2$ git push origin yizhi-821:yizhi-821
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: To create a merge request for yizhi-821, visit:
remote: https://gitlab.k8s.com:8081/dev/yizhi-frontend-v2/-/merge_requests/new?merge_request%5Bsource_branch%5D=yizhi-821
remote:
remote: Sending mail...
remote: clone new project
remote: Creating branch yizhi-frontend-v2@yizhi-821
remote: Loading git hook: /var/www/gitlab-hooks/hooks/yizhi-frontend-v2.sh
remote: Creating new branch yizhi-821 ...
remote: Cloning into 'yizhi-821'...
remote: Warning: Permanently added '[gitlab.k8s.com]:9922' (ED25519) to the list of known hosts.
remote: Run npm install or composer install here after a new branch is created, branch: yizhi-821.
remote: npm WARN ERESOLVE overriding peer dependency
remote: npm WARN While resolving: @typescript-eslint/eslint-plugin@7.13.0
remote: npm WARN Found: eslint@9.5.0
remote: npm WARN node_modules/eslint
remote: npm WARN dev eslint@"^9.5.0" from the root project
remote: npm WARN 20 more (@eslint-community/eslint-utils, ...)
remote: npm WARN
...
...
remote: └─ .output/server/package.json (1.66 kB) (759 B gzip)
remote: Σ Total size: 25.1 MB (9.24 MB gzip)
remote: [nitro] ✔ You can preview this build using node .output/server/index.mjs
remote: ┌────┬───────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
remote: │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
remote: └────┴───────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
remote: [PM2][WARN] Applications yizhiFrontend not running, starting...
remote: [PM2][ERROR] Error: Script not found: /app/.output/server/index.mjs
To ssh://gitlab.k8s.com:9922/dev/yizhi-frontend-v2.git
* [new branch] yizhi-821 -> yizhi-821
这个日志主要是为了说明,在gitlab push创建分支的时候,使用到自定义的git hook(git server端),创建指定的分支,以及初始化分支项目,关于 git hook 脚本我在另一篇文章中有介绍
