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上
相关推荐
BIBI20499 小时前
换 Git 托管平台怎么做?基于 TortoiseGit 的跨平台迁移教程
windows·git·tortoisegit·问题解决·版本控制·最佳实践
echome88817 小时前
Git 日常救急:撤销提交、找回误删文件和解决冲突
git·版本控制
赵民勇21 小时前
Git命令详解
git
不老刘2 天前
Antigravity 的 New Worktree 模式:给 AI 代理一个安全的“平行工位”
人工智能·git·ai编程·antigravity
光谱SpectrAI2 天前
Windows 也中招:Git Bash 和 Node 仍信任泄露的 eMudhra 证书
git
YIN_尹2 天前
【git原理与使用】git初识与安装
大数据·git·elasticsearch
Leo_Mr2 天前
Vue3 项目配置 Git 提交规范(企业通用方案:husky + commitlint + cz-git + lint-staged)
git
jyOverQ2 天前
Git rebase 和 merge 有什么区别?什么时候该用哪个?
git
晗夜未央2 天前
跨仓库 Skill 换台电脑就失效?用 Git remote 校验项目
人工智能·git·python
Lsetea2 天前
Git访问HTTPS证书不受信任:用URL级sslCAInfo限定私有CA范围
git·https·开发工具·ssl证书·ca证书