本文へ移動
The Prince Academy Inc.
Getting Started with GitHub: A Beginner's Guide to Version Control and Collaboration

Collaborating Effectively with Pull Requests

Section 2

Beyond the Basics: Exploring Further GitHub Features

Now that you're comfortable with the core Git and GitHub workflow, it's time to dive into the heart of collaborative development: Pull Requests. Pull Requests (often shortened to PRs) are the mechanism by which you propose changes to a project's codebase and invite others to review, discuss, and ultimately merge those changes. They are fundamental to how teams work together on GitHub.

Think of a Pull Request as a formal request to integrate your branch into another branch (usually the main branch, like 'main' or 'master'). It's not just about submitting code; it's about initiating a conversation around your code.

Here's a typical flow for creating and managing a Pull Request:

Rendering diagram…

Let's break down each step.

  1. Make Changes on a New Branch: Always work on a separate branch for your new features or bug fixes. This keeps your main branch clean and stable. If you haven't already, create a new branch using:
git checkout -b my-new-feature

Then, make your code modifications. Once done, stage and commit them:

情報管理・漏えい対策