Git本地分支更新推送到远程主分支上

  1. 本地分支(debug)开发之前:
  • git pull origin dev(主分支)
  • git merge
    • 这步merge可能会现异常:error:Merging is not possible because you have ynmerged files,出现冲突文件,处理冲突代码
    • 确定处理完后,git add .
    • git commit -m '' ,提交最新代码
    • git push origin debug,推送最新代码到远程分支debug
  1. 你确定dev(主分支) 代码无更新情况下
  • git push origin debug
  • git checkout dev
  • git merge origin debug(分支)
  • 然后push 到dev上
相关推荐
Ws_9 小时前
Git + Gerrit 第二课:diff、暂存区与撤销修改
git
snowjlz9 小时前
鸿蒙版SVN来了!!!
git·svn·版本控制
2401_8769641311 小时前
27考研余炳森概率论|喻老李良2027资料网课
windows·git·考研·svn·eclipse·github·概率论
爱搬砖的狮子12 小时前
【Git】git repo下载使用
git
cheems952715 小时前
Git基本操作
git
Irissgwe15 小时前
三、Git 文件状态管理:add、commit、status 和 diff
git
Ws_20 小时前
Git + Gerrit 第三课:分支、切换与合并
git·elasticsearch
xlq2232220 小时前
6.git
git
Drache_long21 小时前
Git命令概述
git
console.log('npc')21 小时前
修改git中commit内容
git