git基于现有分支进行创建新分支开发

备份分支

  1. 切换到你想要基于的分支下,使用git命令进行分支创建
git checkout -b newCreateBranchName
  1. 推送到远程仓库即可
git push origin newCreateBranchName
  1. 关联当前分支和远程的分支
git branch --set-upstream-to=origin/newCreateBranchName newCreateBranchName

猜你喜欢

转载自blog.csdn.net/qq_40738693/article/details/114063932
今日推荐