Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.24 KB

File metadata and controls

42 lines (27 loc) · 1.24 KB

Git Pull-Request Workflow Exercise

  1. To begin the exercise, sign into the account you made in the previous exercise on GitHub.

  2. Fork the repository at mrsd-practice-git to your own account

  3. Install git on your local machine

  4. Clone your forked repository to your local development machine by running:

    git clone https://github.com/RoboticsKnowledgebase/mrsd-practice-git
  5. Create a new local branch based off main branch

    git checkout -b new-branch-name
  6. Open the contributors.md file using your favorite text editor, and adding your name and GitHub username in a new line

    John Doelan (johndoe)
    
  7. Stage and commit your changes

    git add contributors.md
    git commit -m "Add johndoe to contributors list"
  8. Push changes to your repository on GitHub

    git push origin new-branch-name
  9. Raise a pull request against this repository requesting to pull changes from your new branch into the main branch

  10. Wait for the pull request to be reviewed, make any changes suggested by the repository maintainer and wait for the pull request to be merged.