[英]Update the gh-pages branch with master branch
I'm trying to update the gh-pages
branch with the master
branch, but I can't push the code to gh-pages
.我正在尝试使用
master
分支更新gh-pages
分支,但我无法将代码推送到gh-pages
。
I want to update gh-pages
branch because that's the one rendering in my GitHub website.我想更新
gh-pages
分支,因为这是我的 GitHub 网站中的一个渲染。
I think I mixed up the command.我想我混淆了命令。 Every time I search for solution I type it.
每次我搜索解决方案时,我都会输入它。
What I need to do to or what command I need to update the gh-pages from the master branch?我需要做什么或需要什么命令从主分支更新 gh-pages?
Here is my terminal in VS Code:这是我在 VS Code 中的终端:
First, you can change the publication source at anytime .首先,您可以随时更改发布来源。 gh-pages does not have to be the one rendering your GitHub site.
gh-pages 不必是呈现您的 GitHub 站点的页面。
Second, do a git branch -avv
to check if each branch has an associated branch with the same name.其次,执行
git branch -avv
检查每个分支是否有关联的同名分支。
I have the impression gh-pages
is associated with maste
(hence the invalid name, instead of master
)我的印象
gh-pages
与maste
相关联(因此名称无效,而不是master
)
I would not recommend mixing up names between local and remote branches.我不建议在本地和远程分支之间混淆名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.