Repository: github.com/daretechie/greenwood-library-website

- Practice collaborative Git workflows with multiple contributors
- Implement feature branching strategy
- Manage pull requests (PRs) and conflict resolution
- Maintain clean commit history
- Simulate real-world team collaboration between:
- Morgan (Book Reviews Section)
- Jamie (Events Page Updates)
git clone https://github.com/daretechie/greenwood-library-website.git
cd greenwood-library-websitemain
├── home.html
├── about_us.html
├── events.html
├── contact_us.html
└── README.md
# Create feature branch
git checkout -b morgan/add-book-reviews# Add new feature
touch book_reviews.html
git add book_reviews.html
git commit -m "feat: add book reviews section"
# Push to remote
git push origin morgan/add-book-reviewsPR Process:
- Create PR from
add-book-reviews➔main - Request review from Jamie
- Address feedback (if any)
- Merge using Squash and Merge
# Sync with main first
git checkout main
git pull origin maingit checkout -b jamie/update-events# Make changes
git add events.html
git commit -m "feat: update community events"
# Push to remote
git push origin jamie/update-eventsPR Process:
- Create PR from
update-events➔main - Ensure branch is updated with latest
main:git checkout update-events git merge main
- Resolve conflicts (if any)
- Merge using Rebase and Merge
- Identify conflicting files
- Discuss changes with team
- Use VS Code merge editor
- Test merged code locally
- Commit resolution:
git add . git commit -m "fix: resolve merge conflicts"
| Action | Morgan's Command | Jamie's Command |
|---|---|---|
| Create Branch | git checkout -b add-book-reviews |
git checkout -b update-events |
| Daily Sync | git pull origin main |
git fetch && git rebase origin/main |
| Commit Message | git commit -m "feat: add review card" |
git commit -m "feat: update event" |
| Push Changes | git push origin add-book-reviews |
git push origin update-events |
| PR Merge Strategy | Squash | Rebase |
Happy Collaborating! 👥💻
Maintain clean history, write meaningful messages, and communicate often!









