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
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3