Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After push,appear a new branch?how do I do that? #258

Closed
GC-ZF opened this issue Jun 3, 2022 · 2 comments
Closed

After push,appear a new branch?how do I do that? #258

GC-ZF opened this issue Jun 3, 2022 · 2 comments

Comments

@GC-ZF
Copy link

GC-ZF commented Jun 3, 2022

Uploaded to the main,Is the expected result(这样是正确的)

deploy:
    type: git
    repository: https://github.com/xxx/xxxx.github.io.git	
    branch: main

But If I switch lines(I want to deploy multiple Git at the same time),for example(但是如果换一行,我想同时上传多个git)

deploy:
    type: git
    repository:
      github: https://github.com/xxx/xxxx.github.io.git
      xxxxxx:git@xxx.xxx.xxx.xxx
    branch: main

The github will appear a new branch "gh-pages"(仓库出现新的分支)
image

I found that if switch line, the repository appear new branch,Whether "branch: main" or "gh-pages",(我测试发现,无论branch的值是main还是master,只要我换行就会出现这样的错误)

deploy:
    type: git
    repository:
      github: https://github.com/xxx/xxxx.github.io.git	
    branch: main
deploy:
    type: git
    repository:
      github: https://github.com/xxx/xxxx.github.io.git	
    branch: master

So how do I do that?These are the test repository
https://github.com/GC-ZF/T_hexo
https://github.com/GC-ZF/Test_hexo

@stevenjoezhang stevenjoezhang transferred this issue from hexojs/hexo Jun 10, 2022
@uiolee
Copy link
Member

uiolee commented Jun 14, 2022

read hexojs/hexo-deployer-git/README#options

@GC-ZF
Copy link
Author

GC-ZF commented Jun 20, 2022

read hexojs/hexo-deployer-git/README#options

谢谢你,已解决

@GC-ZF GC-ZF closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants