在 Git 中获取从 master 到分支的更改 [英] Get changes from master into branch in Git

查看:38
本文介绍了在 Git 中获取从 master 到分支的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的存储库中,我正在处理一个名为 aq 的分支.

In my repository I have a branch called aq which I'm working on.

然后我在 master 中提交了新的工作和错误.

I then committed new work and bugs in master.

将这些提交放入 aq 分支的最佳方法是什么?从 master 创建另一个新分支并将其与 aq?

What is the best way to get those commits into the aq branch? Create another new branch out of master and merge it with aq?

推荐答案

检出 aq 分支,并从 master 变基.

Check out the aq branch, and rebase from master.

git checkout aq
git rebase master

这篇关于在 Git 中获取从 master 到分支的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆