Unit Overview: Create a Local Git Repository and Connect to GitHub
🧭 Objective
In this unit, students will learn the complete workflow of creating a local Git repository, connecting it to GitHub, and managing their project through VSCode. Students will practice the entire process from folder creation to pushing code to GitHub.
🎯 Learning Goals
- Create a new project folder and navigate to it
- Initialize a Git repository locally
- Create starter files using terminal commands
- Set up a GitHub repository and connect it to local repo
- Push code to GitHub using proper Git workflow
- Open projects in VSCode and make edits
- Practice the entire process from memory
📚 Lesson List
-
Project Setup and Git Initialization (Setup)
Create a new project folder, initialize Git, and create starter files.
-
GitHub Repository Creation (Remote Setup)
Create a repository on GitHub and connect it to your local repository.
-
VSCode Integration (Editor Setup)
Open your project in VSCode and create your first webpage.
-
Complete Workflow Practice (Application)
Practice the entire process from memory using a cheat sheet.
✅ Project Outcome
By the end of this unit, students will:
- Have a complete understanding of the Git/GitHub workflow
- Be able to create and manage local Git repositories
- Know how to connect local repos to GitHub
- Be comfortable using VSCode for web development
- Have practiced the entire process multiple times
- Be ready to apply this workflow to future projects
🛠️ Prerequisites
- VSCode installed and basic familiarity with the editor
- Git installed on your computer
- GitHub account
- Basic terminal/command line skills
- Understanding of file systems and folders
📖 Additional Resources