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上
相关推荐
霜落花轻扬12 小时前
git相关命令
git
xlq2232215 小时前
2.git
git
OYangxf15 小时前
Git Ignore
大数据·git·elasticsearch
哆哆啦0016 小时前
obsidian远程同步方案:infiniCloud+remotely save方案
笔记·git·obsidian
西柚小萌新17 小时前
【计算机常识】--使用 Gitea 在本地/内网搭建 Git 私有服务器
服务器·git·gitea
zhangfeng113318 小时前
scp 命令的使用方法 什么软件支持 .git bash xshell .openssh
开发语言·git·bash
_君莫笑1 天前
大厂Git使用规范
git
无心水1 天前
【Hermes:安全、权限与生产环境】39、智能体也会犯错?Hermes 纠错、回滚与遗忘机制全指南 —— 让 AI 的错误像 Git 一样可逆可控
人工智能·git·安全·mcp协议·openclaw·hermes·honcho
南境十里·墨染春水2 天前
linux学习进展 git详解
linux·git·学习
zhangfeng11332 天前
CodeBuddy ai对话框上面的git docs terminal Rulds 干嘛用的,以thinkphp fastadmin 为例,插件市场
人工智能·git·编程