ramese666

不影响master,创建分支开发:

1.本地创建分支并切换:git branch xxx(创建名为xxx的分支) + git checkout xxx(切换) = git checkout -b xxx(创建和切换一步到位)

2.将新分支提交到远程:git push origin xxx

 

指定本地分支关联某远程分支(本地先切好分支):

git push --set-upstream origin local_name

 

3.将另外分支V2.0的commint合并到分支V1.0

git checkout V1.0

git cherry-pick xxxxxxxx(某次commit的号码) 

随手转载下一篇关于git操作的文章:

https://blog.csdn.net/Y125348369/article/details/87907729

分类:

技术点:

相关文章:

  • 2022-01-08
  • 2021-12-06
  • 2021-10-31
  • 2021-12-06
  • 2021-12-16
  • 2021-04-29
  • 2021-12-06
  • 2021-12-06
猜你喜欢
  • 2021-03-28
  • 2021-08-17
  • 2021-04-04
  • 2021-12-06
  • 2021-05-17
  • 2021-12-06
  • 2021-09-14
相关资源
相似解决方案