Welcome to the Git & GitHub Study Jam activity repository! This project serves as a collaborative playground to practice your Git and GitHub skills. We'll be working together to populate this Next.js website with everyone's profile cards. Let's start committing and branching out our network!
In this activity, you will:
- Fork this repository.
- Create your own personal profile card from a provided template.
- Add your card to the website.
- Submit a Pull Request to merge your changes into the main project.
- Click the Fork button at the top right of this repository's page on GitHub to create a copy in your own account.
- Clone your forked repository to your local machine:
git clone https://github.com/YOUR-USERNAME/2026-umak-git-and-github-workshop.git
- Navigate into the project folder:
cd 2026-umak-git-and-github-workshop
Create a new branch for your work to keep things organized:
git checkout -b feature/add-your-name(Replace your-name with your actual name!)
- Go to the
src/components/attendees/folder. - You will find a file named
TemplateCard.tsx. - Make a copy of
TemplateCard.tsxin the same folder and rename it to your name (e.g.,JuanDelaCruz.tsx). Do not modify theTemplateCard.tsxdirectly! - Open your new file (e.g.,
JuanDelaCruz.tsx) and update the variables inside it with your own details. Also, rename the component function inside the file to match your new filename.
- Open the file
src/app/page.tsxin your code editor. - Import your newly created component at the top of the file, alongside the other student imports:
import JuanDelaCruz from "@/components/attendees/JuanDelaCruz";
- Find the
attendeesDatavariable (around line 22). This object contains arrays for the different study groups. - Add your component into the array of your designated group:
"Group 1": [ // ... other students <JuanDelaCruz />, ],
- Once you're happy with your changes, save your files.
- Check your changes:
git status
- Stage the files you modified:
(Or just use
git add src/components/attendees/JuanDelaCruz.tsx src/app/page.tsx
git add .to stage all changes) - Commit your changes with a descriptive message:
git commit -m "Add Juan Dela Cruz to Group 1" - Push your branch to your forked repository on GitHub:
git push origin feature/add-your-name
- Go to your forked repository on GitHub.
- You'll see a prompt to compare and pull request your new branch. Click on Compare & pull request.
- Add a brief title and description for your PR.
- Click Create pull request to submit your work! π
A quick reference for common Git commands.
git -vgit config --global user.name "Your Name"
git config --global user.email "your@email.com"git initgit status# View all changes
git diff
# View changes in a specific file
git diff [filename]# Stage all changes
git add .
# Stage a specific file
git add [filename]git commit -m "Your commit message"# Default log
git log
# Log with a graph
git log --graph
# Log with a graph and one-line descriptions
git log --graph --onelinegit guigit branchgit branch [branch-name]git checkout [branch-name]git checkout -b [branch-name]git merge [branch-name]git stash