Git & GitHub Interview Question #69

What is a pull request on GitHub?

Undo & Recovery, Tags, Forks, Pull Requests & Code Review Mid-Level Intermediate

Quick Interview Answer

A pull request is a GitHub collaboration feature for proposing that changes from one branch be reviewed and integrated into another branch. It provides a place for discussion, code review, automated checks, and merge decisions.

Detailed Explanation

A pull request is a GitHub collaboration feature for proposing that changes from one branch be reviewed and integrated into another branch. It provides a place for discussion, code review, automated checks, and merge decisions.

A pull request is not the same thing as git pull. git pull is a local Git command; a GitHub pull request is a hosted review and integration workflow.

Code Example

# Typical preparation
git switch -c feature/search
git add .
git commit -m "Add interview search"
git push -u origin feature/search

# Then open a pull request on GitHub.