git从某一个commit新建分支进行开发

git从某一个commit新建分支进行开发

  1. 首先调用 git log 来查看历史commit信息
  2. 然后使用命令 git checkout [commitid] -b [new-branch-name] 来根据某个commit创建新分支
  3. 最后推送到仓库中使用命令 git push origin [new-branch-name] 就会在仓库中生成一个新的 branch 用于接下来的开发

猜你喜欢

转载自blog.csdn.net/qq_43985303/article/details/131582379