AD450 Lecture Code Respository
This repository contains the demo code covered in class.
Weekly Structure
- Each week includes both a solution folder and a starter code folder.
- If you’d like to follow along during lecture, pull down the starter code for that week.
- I will be updating this every week with new Demo material to match the pace of the course.
How to Pull the Code
- Clone the repository once (the first time you set it up):
git clone <repository-url> cd AD320WebDevLectureCodeFall2025
- At the start of each class, pull the latest updates: This will fetch the newest lecture code.
Working With Your Own Copy
To avoid overwriting your personal changes when new code is pushed, use one of these approaches:
Option 1: Create a Branch for Your Work
- Create a new branch for your changes:
- Do your work on this branch.
- When you need the latest class updates:
Your branch will now include the newest lecture code without losing your changes.
git checkout main git pull git checkout my-work git merge main
Option 2: Fork the Repository
- On GitHub, click Fork to create a copy in your own account.
- Clone your fork:
git clone <your-fork-url>
- Work freely in your fork.
- If you want to fetch updates from the class repository, add it as a remote:
Either approach protects your work while letting you keep up with new lecture code.
git remote add upstream <class-repo-url> git fetch upstream git merge upstream/main