简体   繁体   English

将分支的分支合并为主节点

[英]Merging a Branch of a Branch Into Master

I have a situation like this: 我有这样的情况:

master
   |
    ---- new-branch-1
               |
                ---- new-branch-1.1

Will I be able to merge new-branch-1.1 back into master directly without any issues, or do I need to merge it into new-branch-1 , then merge new-branch-1 into master ? 我是否可以将new-branch-1.1直接合并回master,而不会出现任何问题,还是我需要将其合并到new-branch-1 ,然后将new-branch-1合并到master I realize I could just "try it and see what happens," but I really don't want to run into issues that could potentailly cripple my codebase. 我意识到我可以“尝试一下,看看会发生什么”,但是我真的不想遇到可能严重破坏我的代码库的问题。 I have backups of all my repos, but if I accidentally corrupt the original (or cause any sort of issue forces me to delete the local copy) then my backup is no longer a backup and that worries me. 我已经备份了所有存储库,但是如果我不小心损坏了原始存储库(或导致任何类型的问题迫使我删除了本地副本),那么我的备份将不再是备份,这让我很担心。

I do use GitHub Desktop for most of my git needs. 我确实将GitHub Desktop用于大多数git需求。

I would recommend using the github desktop pull request functionality by running: 我建议通过运行以下命令使用github桌面请求请求功能:

git push origin new-branch-1.1 

and then seeing whether your changes will merge in cleanly at the bottom of the page: here is what that looks like for me: 然后在页面底部查看您所做的更改是否将干净地合并:这是我的外观:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM