PY-1.4-BP1-MQ20

Objective

Using the command line in your local Pong game repository, create a new Git branch named 'feature/add-score-limit' and list all local branches to verify its creation.

Check Specification

Before we begin, let's understand the current state and the target specification.

Your current state is a local Git repository, likely on the main branch.

The specification requires you to:

  1. Create a new branch named feature/add-score-limit.
  2. Confirm that this new branch exists in your local repository's list of branches.

We will use Git command-line tools to achieve and verify this.

Implement: Create and List Branch

Step by step checklist:

  1. In your terminal, navigate to the root directory of your local Pong game repository.
  2. Execute the command to create a new Git branch with the specified name.
  3. Execute the command to list all local branches.

The following documentation sections are going to be helpful:

  • Why Use Branches? (Feature Branching Rationale)
  • The main Branch
  • Creating a New Branch (git branch)
  • Summary of the Feature Branch Workflow

Validate

Now that you have executed the commands, let's validate the results.

Verification Steps:

  1. Review the output of the command you used to list local branches.
  2. Check if a branch named feature/add-score-limit is present in the list.

Expected Verification Results:

  • ✅ The list of local branches includes feature/add-score-limit.

If the new branch is listed, you have successfully completed the objective!

Documentation

Documentation not available for PY-1.4-BP1.