Welcome to the Git & Github Workshop Hands-On Exercise repository! This project is designed to help participants practice using Git and GitHub by contributing to an open-source project.
This is a simple directory where attendees can add their name, role, and a short bio to a JSON file. The data will be displayed dynamically on a webpage.
Follow these steps to add yourself to the Attendees Directory:
Click the Fork button at the top-right corner of this repository to create a copy in your own GitHub account.
Open your terminal and run:
git clone https://github.com/YOUR_GITHUB_USERNAME/git_github_hands_on.git
Replace YOUR_GITHUB_USERNAME
with your actual GitHub username.
cd git_github_hands_on
Open attendees.json
in a text editor and add your details in the following format:
{
"name": "Your Name",
"role": "Your Role (e.g., Student, Developer)",
"bio": "A short bio about yourself."
}
Make sure to keep the JSON format valid and place your entry inside the array.
git add attendees.json
git commit -m "Added my name to the directory"
git push origin main
- Go to your forked repository on GitHub.
- Click on New Pull Request.
- Select the base repository (this one) and compare it with your changes.
- Click Create Pull Request and submit it!
We will review your pull request and merge it if everything looks good.
attendees-directory/
│── index.html # Webpage displaying the attendees
│── attendees.json # JSON file containing attendees data
│── README.md # Instructions on how to contribute
- Ensure your JSON syntax is correct to avoid errors.
- Contributions must follow the format given in
attendees.json
. - Feel free to explore and contribute beyond this workshop!
Happy coding! 🚀