streamlit-rebase
Rebase our custom fork of the Streamlit repository onto new upstream Streamlit release
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Rebase the stlite customization branch onto a new upstream Streamlit release.
- Navigate to the
/streamlitsubmodule directory - Fetch the latest tags from upstream:
git fetch upstream --tags - Infer the current base branch such as
stlite-1.44.0-4. Our project naming convention isstlite-[upstream-version](-[customization-version])?. Use this to determine the previous upstream version tag, and ask me to confirm it before proceeding. The base Streamlit version tag can be inferred from the current branch name as well.CURRENT_STLITE_BRANCH="INFERRED_BRANCH_NAME_HERE" CURRENT_BASE_STREAMLIT_VERSION_TAG="INFERRED_TAG_NAME_HERE" - Assume
NEW_BASE_STREAMLIT_VERSION_TAGis the tag name of the new upstream release, e.g.,1.45.0.NEW_BASE_STREAMLIT_VERSION_TAG=$ARGUMENTS - Determine the new stlite customized branch name, e.g.,
stlite-1.45.0.NEW_STLITE_BRANCH=stlite-$ARGUMENTS - Create the new stlite customization branch from the current one:
git checkout -b $NEW_STLITE_BRANCH $CURRENT_STLITE_BRANCH - Rebase onto the new upstream tag:
git rebase --onto $NEW_BASE_STREAMLIT_VERSION_TAG $CURRENT_BASE_STREAMLIT_VERSION_TAG $NEW_STLITE_BRANCH - If conflicts occur:
- Run
git statusto identify conflicting files - Read each conflicting file to understand both versions
- Resolve conflicts by preserving stlite customizations while incorporating upstream changes
- If the conflict is so large, ask the developer for review and help
- Run
git addon resolved files - Continue with
git rebase --continue
- Run
- Repeat until rebase completes
- Verify with
git log --onelinethat customization commits are on top of the new tag
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-03-11
- 索引更新时间
- 2026-03-11
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!