【发布时间】:2023-01-24 15:35:54
【问题描述】:
我有以下情况
origin/master, master
|
some_commit
|
| * HEAD-> thebranch, origin/thebranch
| * some other commit
| * some third commit
|/
* the last common commit
我不打算向 thebranch 添加任何提交,我只是在使用它。
现在我已经收到通知,分支的开发人员可能已经将其重新定位到 master 的顶部并向其添加了一些提交
问题
我的问题是在这种情况下我应该如何进行?
我猜
我正在考虑做
git fetch origin thebranch
然后将我的本地分支重新设置为 master
然后合并它?但这会产生合并提交吗? 我对如何进行感到困惑。
【问题讨论】:
标签: git