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

【教程】分支部署能出个教程吗? #2309

Open
Wolftribe2023 opened this issue Apr 20, 2024 · 1 comment
Open

【教程】分支部署能出个教程吗? #2309

Wolftribe2023 opened this issue Apr 20, 2024 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@Wolftribe2023
Copy link

描述遇到的问题
在官方推荐的优化更新中,有一句“在vercel中导入并选择使用该分支进行部署”对于小白来说无法理解。

相应配置
比如:我已经在自己的github仓库中建立的分支,但不明白如何将此【分支】在vercle中进行使用和部署,希望大佬能帮助小白在使用文档里出个简单的教程,谢谢大佬!

截图
如上描述

环境

  • 操作系统: windows
  • 浏览器:chrome
  • 版本 [123.0.6312.86(正式版本)]
@tangly1024 tangly1024 added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Apr 23, 2024
@tangly1024 tangly1024 changed the title 分支部署能出个教程吗? 【教程】分支部署能出个教程吗? Apr 23, 2024
@tangly1024
Copy link
Owner

感谢反馈,后续我会更新到文档中。

其实在Vercel后台可以很容易找到:

打开vercel -> 点击自己的项目 -> 点击 Settings -> 点击 Git -> 修改分支名 例如 deploy/xxx.com -> 点击Save即可

修改后,你今后只需要修改自己的这个分支代码,即可调整站点的内容

image

关于修改代码

修改前记得切换到自己的这个分支。
image

#后续升级代码
当自己的分支独立出来后,直接点击github中的 Sync Code 升级代码只会升级main分支的代码。

如何升级站点?

将自己主仓库中最新版本的main分支代码,合并到自己的分支 deploy/xxx.com 即可触发项目的自动更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants