两个分支:主分支master,分支pre

1、将pre分支文件合并到master分支:

  切换到master分支下操作:

  合并文件夹【如果是文件则为a.text b.text】:

  git checkout pre a

  将文件夹a添加到暂存区:

  git add a

  将a文件夹提交到远程仓库:

  git commit -m a

  拉去远程仓库文件:

  git pull --rebase origin master

  将文件夹a推送到远程仓库:

  git push origin master

 

相关文章:

  • 2021-12-18
  • 2022-02-26
  • 2022-02-17
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案