Need Assistance?

support@tutorialshub.in

Repositories, Branches and Pull Requests

Merging pull requests

ADVERTISEMENT
GitHub Free Lesson
5 min read
ADVERTISEMENT

Merge is the integration point

When a pull request satisfies its review and automated checks, GitHub can integrate it according to the repository's allowed merge methods.

Common merge strategies

A merge commit preserves branch topology. Squashing combines the pull request's changes into one commit on the target branch. Rebase-and-merge creates a linear history by replaying the commits without a merge commit.

Choose according to project policy

Different teams prefer different history styles. The important point is to use a consistent policy that keeps history understandable and does not rewrite shared work unexpectedly.

ADVERTISEMENT