ps海报素材网站,网站开发使用软件有哪些,wordpress主题古风,汕头模板建站软件Merge the incoming changes into the current branch 找到两个分支的祖先 commit#xff0c;然后将公共分支最新版合并到自己的分支#xff0c;形成一个新的 commit 提交#xff0c;用图表示如下。
Rebase the current branch on top of the incoming Rebase 则是重新基于…Merge the incoming changes into the current branch 找到两个分支的祖先 commit然后将公共分支最新版合并到自己的分支形成一个新的 commit 提交用图表示如下。
Rebase the current branch on top of the incoming Rebase 则是重新基于一个分支进行 commit即将当前分支从祖先的 commit 后所提交的 commit 均撤销将他们放到一个缓存中然后基于一个分支的后面将缓存的 commit 按照顺序以一个个新增到该分支后面用图表示如下将 4 和 5 所提交的 commit 放到缓存中然后按顺序将其新增到 6 的后面。 而使用 Rebase 和 Merge 的基本原则可以总结如下三条
下游分支更新上游分支内容时使用 Rebase拉取master分支到开发分支
上游分支合并下游分支内容时使用 Merge将开发分支合并到master、release分支
更新当前分支内容时一定要使用 --rebase 参数