Welcome! This is a hands-on workshop where you'll practice real Git workflows used in industry: branching, pull requests, code reviews, and shared code.
- Create feature branches
- Open and review pull requests
- Work with a shared codebase flow
Before the workshop, make sure you have:
Check if you have Git:
git --versionIf not installed:
- macOS: Open Terminal and run
git --version(it will prompt you to install) - Windows: Download from git-scm.com
- Linux: Run
sudo apt-get install git(Ubuntu/Debian) orsudo yum install git(Fedora)
Check if you have Node.js:
node --versionIf not installed:
- All platforms: Download from nodejs.org (get the LTS version - the green button)
- Run the installer, click through with default options
- Close and reopen your terminal
Verify it worked:
node --version
npm --versionYou should see version numbers like v20.x.x and 10.x.x.
If you don't have one, create a free account at github.com.
Run these commands with your info:
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"Important: Do not push directly to this repository. Fork the repo, create a feature branch, push to your fork, and open a pull request.
- Fork this repository to your GitHub account (click the "Fork" button in the top right).
- Clone your fork to your computer:
# Replace '<your-github-username>' with your actual GitHub username
git clone https://github.com/<your-github-username>/ACMworkshop.git
cd ACMworkshopYou need to tell Git where the original repository is so you can pull updates:
git remote add upstream https://github.com/chanu1406/ACMworkshop.gitnpm startYou should see the app run successfully. This confirms everything works!
Pick a descriptive branch name:
git checkout -b feature/your-name-add-contributorExample: feature/chanu-add-file
We avoid modifying existing files to prevent merge conflicts (when two people change the same line).
- Navigate to
src/contributors/ - Create a new file named
your-username.js. - Add a simple log message inside:
console.log("Hello from [Your Name]!");
# Add your new file
git add src/contributors/your-username.js
# Commit
git commit -m "Add contributor file for [your name]"
# Push
git push origin feature/your-branch-name- Go to your fork on GitHub:
https://github.com/<your-username>/ACMworkshop - You should see a banner saying "Compare & pull request". Click it.
- If you don't see the banner: Go to "Pull requests" tab -> "New pull request" -> click "compare across forks" -> select "chanu1406/ACMworkshop" as base and your fork as head.
- Fill out:
- Title: Brief description of your change
- Description: Why you made this change
- Click "Create pull request"
Your instructor will assign you a PR to review.
What to do:
- Go to the original repository PR list:
https://github.com/chanu1406/ACMworkshop/pulls - Click on the PR assigned to you (or pick a random one if not assigned).
- Click on "Files changed"
- Leave at least one comment:
- Ask a question
- Suggest an improvement
- Approve the change
- Click "Review changes" → "Approve" or "Request changes"
Your review must include:
- At least one written comment
- One approval OR one request for changes
Your PR is now ready to merge!
- Forks allow you to work on your own copy
- Branches keep your work isolated
- Pull requests are how you propose changes
- Code Review ensures quality before merging
# See what branch you're on
git branch
# See what files changed
git status
# See your changes
git diff
# Switch branches
git checkout branch-name
# Get latest from the original repo
git pull upstream main