Open a Pull Request With GitHub Desktop

Now that you have made some local commits, it is time to send your changes to the remote copy of your repository on GitHub.com and open a pull request.

gif of following the directions below

  1. On GitHub Desktop, click the button to sync changes. This button changes states based on the changes that have been made in your local repository and on the remote. If no other changes have been made, it will read Publish Branch.
  2. In your browser, go to the ‘Pull Requests’ tab of the class repository.
  3. Click ‘New pull request’.
  4. Ensure the base branch (the one on the left) is master and that the compare branch (the one on the right) is the one you created on GitHub Desktop.
  5. Complete the fields of the pull request.
Tell me why

Reviewing the GitHub Flow

Let’s review where we are in the GitHub Flow:

  1. Create a branch
  2. 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

Simply click the “Update Origin” button. This sends your branch up to GitHub. Then, you open the Pull Request there!

Stuck? Open an issue in the repository for this class and mention @githubteacher for help from one of the GitHub trainers!
Continue