Git & GitHub Through VS Code Experiments 1–6 (VERSION CONTROL WITH GIT & GITHUB)
VKS Academy
0:00 / 0:00
Git & GitHub Through VS Code Experiments 1–6 (VERSION CONTROL WITH GIT & GITHUB)
154 просмотра · 11 дн. назад
VKS Academy
90 подписчиков
154 просмотра · 11 дн. назад
In this practical video, I demonstrate Git & GitHub through VS Code on Windows 11, using Git Bash, Git and GitHub.
This video is designed for students to follow along and revise Experiments 1–6 practically. The experiments follow the sequence in the lab material: Setup, Basic Workflow, Branching, Pull Requests, Stashing and Cloning.
🔹 Experiments Covered
Experiment 1 – Setting Up Git & GitHub
Configure Git username and email
Create a local repository
Initialize Git with main
Create/connect a GitHub remote repository
Verify remote using git remote -v
Experiment 2 – Basic Git Workflow
Create a file
Check repository status
Stage changes using git add
Commit changes using git commit
Push changes to GitHub
Experiment 3 – Creating & Managing Branches
Create a feature branch
Make changes in the feature branch
Commit the changes
Switch back to main
Merge the feature branch
Experiment 4 – Collaborating with Pull Requests
Create a feature branch
Create and commit README.md
Push the feature branch to GitHub
Create a Pull Request
Review and merge the Pull Request
Synchronize the local main branch using git pull
Experiment 5 – Stashing Changes
Create uncommitted changes
Temporarily store changes using git stash
View stashes using git stash list
Restore changes using git stash pop
Understand the difference between stash pop and stash apply
Experiment 6 – Cloning a Remote Repository
Clone a GitHub repository
Open the cloned repository in VS Code
Verify the remote repository using git remote -v
🛠️ Tools Used
Windows 11
Visual Studio Code
Git for Windows
Git Bash
GitHub
📌 Important Git Commands Covered
git --version
git config
git init
git status
git add
git commit
git push
git switch
git merge
git stash
git stash list
git stash pop
git pull
git clone
git remote -v
Please do not only watch the video. Open VS Code and perform each command along with the demonstration.
Pause the video whenever required and practice Experiments 1–6 yourself before the lab session.
Git → Version Control
GitHub → Remote Repository & Collaboration
VS Code → Development Environment
#Git #GitHub #VSCode #VersionControl #GitBash #CSE #GitLab #Programming #SoftwareDevelopment