deploy 设置多个git地址时, branch: main这个设置无效,全默认成master分支了 #5621
Answered
by
D-Sketon
ansoncloud8
asked this question in
Question / Answer
-
Check List
Expected behavior设置如下: deploy:
type: git
branch: main
repo:
- https://[email protected]/xxx1/xxx1.github.io
- https://[email protected]/xxx2/xxx2.github.io
message: update
name: xxx
email: [email protected] hexo deploy执行后,上传到两个仓库的代码都是master分支,不是main分支 Actual behavior设置如下: deploy:
type: git
branch: main
repo:
- https://[email protected]/xxx1/xxx1.github.io
- https://[email protected]/xxx2/xxx2.github.io
message: update
name: xxx
email: [email protected] hexo deploy执行后,上传到两个仓库的代码都是master分支,不是main分支 How to reproduce?设置如下: deploy:
type: git
branch: main
repo:
- https://[email protected]/xxx1/xxx1.github.io
- https://[email protected]/xxx2/xxx2.github.io
message: update
name: xxx
email: [email protected] hexo deploy执行后,上传到两个仓库的代码都是master分支,不是main分支 Is the problem still there under
|
Beta Was this translation helpful? Give feedback.
Answered by
D-Sketon
Jan 19, 2025
Replies: 1 comment
-
https://github.com/hexojs/hexo-deployer-git/blob/master/README.md # Multiple repositories
deploy:
repo:
# Either syntax is supported
[repo_name]: <repository url>[,branch]
[repo_name]:
url: <repository url>
branch: [branch] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
uiolee
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/hexojs/hexo-deployer-git/blob/master/README.md