如何在GitHub中使用Squash And Merge? [英] How to use Squash And Merge in GitHub?

查看:187
本文介绍了如何在GitHub中使用Squash And Merge?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GitHub上合并Pull-Requests(PR)时,有一个选项"Squash And Merge" ,它的目的是什么,它将做什么??

While merging Pull-Requests (PR) on GitHub, there is one option "Squash And Merge", What is purpose of that and what it will do ??

推荐答案

Github上的这篇博客文章可能会有所帮助.

基本思想是,您在功能分支上添加的所有提交都将被合并为一个大的提交,从而使git树更易于阅读.如果您经常还原分支中的错误,这将特别有用.

The basic idea is that all the commits you added on your feature branch, will be put together into one, large commit, making the git tree easier to read. This is particularly useful if you frequently reverted mistakes in your branch.

这篇关于如何在GitHub中使用Squash And Merge?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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