jme*_*era 7 git terminology rebase
我最常听到同事说我用master重新调整了我的分支,但这是“正确”的说法吗?你是用 ref 来变基还是用 ref 来变基?这两种方式都可以接受/准确吗?
git/git如果你在(Git 源代码)中搜索这两个表达式,你将得到:
为了rebase with:
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`.
...
Run Code Online (Sandbox Code Playgroud)
从未使用过“有分支”。
关于“重新建立基础”:
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"
Run Code Online (Sandbox Code Playgroud)
所以你显然是在分支上重新建立基础,而不是“用分支”。
这是命令的定义git rebase:
在另一个基本提示之上重新应用提交