How to Create a Local Git Repository Using WSL & Push to GitHub 2026

Опубликовано: 29 Май 2026
на канале: AI Code
34
0

In this beginner-friendly Git tutorial, you'll learn how to create a local Git repository using WSL (Windows Subsystem for Linux) and push your project to GitHub step-by-step.

Whether you're new to Git, GitHub, or WSL, this video walks you through the complete workflow developers use every day.

📚 What You'll Learn:
✅ How to open and use WSL on Windows
✅ Create a new local project folder
✅ Initialize a Git repository with `git init`
✅ Add and commit files using Git
✅ Create a GitHub repository
✅ Connect your local repo to GitHub
✅ Push your code using `git push`
✅ Understand the basic Git workflow

💻 Commands Covered:

`mkdir`
`cd`
`git init`
`git add`
`git commit`
`git branch -M main`
`git remote add origin`
`git push -u origin main`

🛠 Requirements:

Windows 10/11
WSL installed
Git installed
GitHub account

🔥 Perfect for:

Beginner developers
Students learning Git
Web developers
Linux & WSL users
Anyone starting with GitHub

⏱ Chapters:
00:00 Introduction
00:30 Open WSL
01:20 Create Project Folder
02:15 Initialize Git Repository
03:40 Create README.md
05:00 Commit Changes
06:30 Create GitHub Repository
08:00 Connect Local Repo to GitHub
09:20 Push Code to GitHub
10:30 Final Tips

📌 If this video helped you, make sure to:
👍 Like the video
💬 Leave a comment
🔔 Subscribe for more coding tutorials

#Git #GitHub #WSL #Linux #Windows #Programming #Coding #Developer #GitTutorial #OpenSource