1、从某个commit拉取分支
git checkout -b <new branch name> <commit_id>
例:git checkout -b test_branch 1f0a24f01e5
2、推送到远程
git push -u origin 分支名
例:git push -u origin test_branch
附:确定需要取出版本的commit_id
git log
Powered by: 博客园 Copyright © 2025 shenyixin Powered by .NET 9.0 on Kubernetes