This task is designed to help you practice basic Git commands by adding your name to an attendee list on an HTML page, creating a new branch, and then raising a pull request to merge this branch into the main
branch.
- Fork this repository to your GitHub account.
- Clone your forked repository to your local machine:
git clone https://github.com/jslovers/demo-workshop-may-24.git
- Navigate into the cloned directory:
cd demo-workshop-may-24
- Create a new branch for your changes:
git checkout -b add-my-name-<YOURNAME>
- Open the
index.html
file located in the root directory. - Find the
<ul>
tag for attendees. - Add a new
<li>
element with your name:<li>Your Name</li>
- Save your changes.
- Add your changes to the staging area:
git add index.html
- Commit your changes with a descriptive message:
git commit -m "Add <Your-Name> to attendee list"
- Push your changes to the new branch on your fork:
git push origin add-my-name-<YOURNAME>
- Go to your fork on GitHub.
- You'll see a prompt to "Compare & pull request" for your newly pushed branch. Click it.
- Ensure the base repository is set to the original repository and the base branch to
main
. - Confirm your changes and then click 'Create Pull Request'.