Mastering DevOps Git – Lecture 1 | Git Basics, Init, Add, Commit, Config | Complete Hands-On

Опубликовано: 04 Июль 2026
на канале: Raman Sharma
136
3

Mastering DevOps Git – Lecture 1 | Git Basics, Init, Add, Commit, Config | Complete Hands-On
Welcome to Mastering DevOps – Git Lecture 1 🚀

In this lecture, we start from scratch and understand the fundamentals of Git with complete hands-on practice using Windows PowerShell.

In this session, we covered:

Creating directory structure

Initializing Git repository

Staging files

Committing changes

Global and Local Git configuration

Unstaging files

Viewing commit history

Understanding Git status

Using dry-run

Difference between global and local config

🔹 Commands Practiced in This Lecture
cd /
mkdir training
cd .\training\
mkdir MasteringDevops
cd .\MasteringDevops\
mkdir Banking
cd .\Banking\

git init
new-item -path index.html
git status
git add .
git commit -m "index.html file is getting added"

git config --global user.name "raman-global"
git config --global user.email "[email protected]"
git config --global core.editor "vim"

git log

new-item -path local.html
git add .
git config --local user.name "raman-local"
git commit -m "local settings"

git config --list
git config --global --list
git config --local --list

git init test
cd test
git status
cd ..

new-item -path bal.html
new-item -path pl.html
new-item -path dao.html

git add .\bal.html
git rm --cached .\bal.html

git add --dry-run .
git add -A

git commit -m "bal.html file is added"
git commit -m "pl.html and dao.html files are added"

git log
git log --oneline


This lecture builds the foundation required for:

Git branching

Git merge & rebase

GitHub workflow

CI/CD integration

DevOps pipelines

Stay tuned for upcoming lectures in the Mastering DevOps Git Series 🔥

mastering devops git, git lecture 1, git for beginners, devops git tutorial, git