Git 你会用另一个分支(或其他介词)重新设置基址吗?

Git 你会用另一个分支(或其他介词)重新设置基址吗?,git,terminology,rebase,Git,Terminology,Rebase,我经常听到同事们说我与master重新设置了分支的基础,但这是“正确”的说法吗?您是在ref上重设基址还是在ref上重设基址?这两种方法都可以接受/准确吗?如果在(Git源代码)中搜索这两个表达式,您将得到: 对于使用重设基础的: D:\git\git>git grep -i "rebase with" Documentation/git-pull.txt:When set to `preserve` (deprecated in favor of `merges`), rebase wi

我经常听到同事们说我与master重新设置了分支的基础,但这是“正确”的说法吗?您是在ref上重设基址还是在ref上重设基址?这两种方法都可以接受/准确吗?

如果在(Git源代码)中搜索这两个表达式,您将得到:

对于使用重设基础的

D:\git\git>git grep -i "rebase with"
Documentation/git-pull.txt:When set to `preserve` (deprecated in favor of `merges`), rebase with the
Documentation/git-rebase.txt:- Start an interactive rebase with `git rebase -i <commit>^`, ...
Documentation/git-rebase.txt:- Continue the rebase with `git rebase --continue`.
...
因此,很明显,您是在重新定位到分支上,而不是“使用分支”

这就是命令的定义:

在另一个基本提示的顶部重新应用提交


我应该去睡觉,但从技术上讲,你要重新设定一个承诺。使用
git-rebase-on
准确地告诉git是哪一个;使用
git-rebase
而不使用
--on
告诉git使用
上游
查找目标提交。Git在没有参数的情况下,从分支的上游设置中找到
。人们所说的并不完全是编程问题,尽管这是什么类型的问题,但更难说。不适合在english.stackexchange.com上,我想。。。
po/bg.po:msgid "Cannot rebase onto multiple branches."
po/bg.po:msgid "rebase onto given branch instead of upstream"
po/bg.po:msgid "invalid branch.%s.merge; cannot rebase onto > 1 branch"