Review Pushing and Opening Pull Requests

Now that you have made some local commits, it is time to send your changes to the remote copy of your repository on and create a Pull Request.

gif of following the directions below

  1. Push your commits to the remote, and set a remote tracking branch:

     git push -u origin <BRANCH-NAME>
  2. Enter your GitHub username and password, if prompted to do so.
  3. Create a Pull Request on GitHub.
  4. Fill out the body of the Pull Request with information about the changes you’re introducing.
I need a refresher

Push Your Branch

  1. To push your local commits to the remote, type:

       git push -u origin <BRANCH-NAME>
  2. Open your preferred web browser and access

Create a Pull Request

  1. Click the Pull Requests tab.
  2. Click New pull request.
  3. Use the compare: drop-down menu and select your branch.
  4. Click Create pull request.
  5. Modify the Title and Body of the Pull Request to describe the changes you are proposing.
Tell me why

Reviewing the GitHub Flow

We are following the 5 steps of GitHub Flow, which are:

  1. :white_check_mark: Create a branch
  2. :white_check_mark: Add commits
  3. Open a Pull Request :arrow_left: (This section deals with this step.)
  4. Collaborate, and make more commits
  5. Merge the Pull Request
Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!