https://www.cnblogs.com/xieyang-yang/p/10767330.html

 

需求:将develop合并到master分支

1.查看当前分支(当前分支可以直接查看或者命令查看)

git branch或者命令git status

*代表当前分支

git 命令合并分支

 

2.切换分支到master

git checkout mater

git 命令合并分支

3.将代码更新到最新版本

git pull

4.在master分支上,将develop分支合并到master上面

git merge develop

如果不行,使用命令

git merge develop --allow-unrelated-histories

5.添加到缓存

 

git add .

6.提交到本地分支

git commit -m '20190424'

git 命令合并分支

 

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2021-06-16
  • 2021-09-24
  • 2022-12-23
  • 2021-09-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-08-04
  • 2022-12-23
相关资源
相似解决方案