Git - 将旧分支移动到另一个分支叫什么?

标签 git version-control branch

我不太知道如何描述这一点,但我正在努力扩大我的词汇量。我正在寻找:

  • 这个操作叫什么?
  • 如何在 Git 中执行此操作?

这是图片:

How do I do this in git?

描述:

  1. I create a branch (beta), make some commits, and merge it back into it's parent branch (alpha).

  2. After this merge, the original branch (alpha) has some commits made on it, leaving the old branch, beta, behind.

  3. I then want to do some work on the child branch (beta) again. However, first I must move it up to where it's parent is (alpha). What is this action called, and how do I do this?

最佳答案

这称为快进 merge 。 您只需发出即可做到这一点

git merge alpha

处于测试阶段。

关于Git - 将旧分支移动到另一个分支叫什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24152455/

相关文章:

git 从终端推送错误的用户

git递归添加所有.tex文件

android - 你如何在android studio中关闭版本控制?

git - 在 Git 中丢弃更改的正确方法

git - 分支名称中哪些字符是非法的?

git - 如何提供对 Composer 使用的 git 存储库的访问

ruby-on-rails - 为生产应用程序销售 rails 的推荐方法是什么?

version-control - 在没有 shell 访问权限的共享主机上可以进行版本控制吗?

git - 使用 git 跟踪其他人的项目

git - 如何在 master 中找到所有未 merge 的提交,这些提交按创建它们的分支分组?