Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Basics Workshop - Exercise #2 - Your 1st Pull Request #10

Open
CristinaRuth opened this issue Oct 7, 2019 · 0 comments
Open
Labels
workshop exercise An issue that contains steps as part of a workshop exercise.

Comments

@CristinaRuth
Copy link
Owner

CristinaRuth commented Oct 7, 2019

Your 1st Pull Request

This exercise is a part of our Github source control and basics workshop. If you're completely new to Github and git, we highly recommend you read through the workshop contents if you want to learn both.

This exercise is to help you get familiar with the process on how to create a pull request.

If you are not familiar with Git and GitHub and are completely new, please see our #9 first before going through this exercise.

In this exercise, you'll create and merge a pull request against the repo you created in #9.

For terminologies, please refer to the source-control-basics.md workshop contents.

Steps

  1. Let’s go back to Visual Studio’s Terminal window again. And let’s pull any changes to make sure we have the latest changes.
    git pull
  2. Let’s create a new branch.
    git checkout -b name_of_your_branch
  3. Push the branch to the remote server. Since we don’t have the branch created in our remote, we need to set this one as the upstream branch in remote.
    git push --set-upstream origin name_of_your_branch
  4. Make another change to the Readme.md file and push your changes. (See GitHub Basics Workshop - Exercise #1 - Your 1st Repo & Commit #9 for reference)
  5. Load your repository on github.com in your browser and you should see “2 branches” there now. Note the number of “commits” here. Click on the “2 branches” and go to your new branch and note the number of commits. The branch should have 1 more commit than the “master” branch.
  6. Let’s make a pull request. Click the “Compare & Pull Request “ button.
  7. In the next screen, write a comment as desired, and click the “Create Pull Request” button.
  8. Complete the pull request by clicking on the “Merge pull request” button + “confirm merge” button after that.
  9. Go back to your repository on github.com and you should see the number of commits would be 2 more than the previous number. This includes the “1” commit from your branch, and another commit for the pull request merge.
@CristinaRuth CristinaRuth added the workshop exercise An issue that contains steps as part of a workshop exercise. label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workshop exercise An issue that contains steps as part of a workshop exercise.
Projects
None yet
Development

No branches or pull requests

1 participant