Day 2: Git Basics – Learn Git Init, Add, Commit, and Log in 10 Minutes

Опубликовано: 20 Август 2026
на канале: AI & Code with Suresh
54
3

Welcome to Day 2 of the IT & Code Foundation series! 🚀
In this video, we introduce you to Git, your personal time machine for code.
Learn the core Git workflow using Git Bash – including git init, git add, git commit, and git log.

🔧 What You’ll Learn:
What is Git and why it's used

Setting up your Git identity

Initializing a Git repository

Staging files using git add

Saving your work with git commit

Viewing your commit history with git log

👨‍💻 Tools Used: Git Bash on Windows
📁 Project: my-first-project

👉 Don’t forget to Like, Share, and Subscribe to stay updated with this foundational coding series!

📌 Watch Day 1 here: [Insert Day 1 Video Link]
📌 Up next: Day 3 – Push Your Code to GitHub (From Local to Cloud)
👨‍🎓 Perfect for students, career switchers, and self-learners in the USA, UK, Canada, Australia, Germany, and beyond — no prior coding experience required!

⏱️ Timestamped Breakdown
🎬 Day 2: Git Basics
00:00 – Introduction
Welcome to Day 2 of the IT & Code Foundation series. Let’s explore the Git Basics
00:29 so for we learned pwd, ls, etc., till created folder myfirstproject
tion Step-1: Set up your Git identity git config --global user.name "Your Name"
git config --global user.email "[email protected]"
03:04- Move into your project folder cd my-first-project Initialize Git git init
03:33 - ls -a verify the .git file as hidden file: Check Git status
04:04 - Step 3: Add the file to staging git add index.html
git status
04:28 - Step 4: Commit the file it commit -m "Initial commit: Add index.html"
04:54 - Step 8: View your Git history git log
05:12 - First version is saved in the machine.
05:51 myfirstproject folder in demonstration
06:14 git --version

06:44 git config --global user.name "yourname" and git config --global user.email 'emailaddress"
07:54 cd myfirstproject folder
08:22 git init demonstration
08:57 ls and ls -a shown the hidden folder
09:27 git status
10:14 git add index.html
10:39 git status
11:11 git commit -m "add index.html"
12:21 git log
12:53 recap what we did four steps
13:14 Day 3 push your code to GitHub from local to cloud in minutes.