Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Learn Git and Git Bash with Hands-On Demo | Raghav Pal

Автор: Automation Step by Step

Загружено: 2025-07-31

Просмотров: 3485

Описание:

00:00 TOPICS
02:01 Install Git & Git Bash
10:39 Configure Git for the First Time
14:02 Create Local Git Repository
18:39 Create a File and Make First Commit
22:56 Modify the File and Track Changes
26:12 View Commit History and File Versions
31:14 Create and Switch Branches
35:27 Merge Branches
38:44 Create a GitHub Repo and Push Your Code
47:53 Clone a Repository from GitHub

--
#GitBeginnerTutorials #GitHubBeginnerTutorial #GitBashTutorial
--

Install Git & Git Bash

Step 1 - Go to https://git-scm.com/downloads
Step 2 - Download and install Git for your OS (Windows/macOS/Linux)
Step 3 - Create a folder → right-click → Open Git Bash Here
-


Configure Git for the First Time

Step 1 - Do this in Git Bash:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
--global: applies to all your Git projects
Your name and email appear in commit history
Step 2 - To verify git config --global --list
-

Create Local Git Repository

Step 1 - Do this in Git Bash:
mkdir git-demo
cd git-demo
git init
mkdir git-demo: makes a new folder.
cd git-demo: enters the folder.
git init: initializes an empty Git repository (creates a hidden .git folder).
Step 2 - To check status git status
-

Create a File and Make Your First Commit

Step 1 - Do this in Git Bash:
echo "Hello Git!" > hello.txt
git status
Step 2 - Stage the file git add hello.txt
Step 3 - Commit the file git commit -m "my first commit: Added hello.txt"
🔍 What just happened:
git add: stages the file (prepares it for commit)


git commit: saves it to Git history with a message
Step 4 - Check commit log git log
-

Modify the File and Track Changes

Step 1 - Open hello.txt in any editor (Notepad, VS Code, etc.)
Step 2 - Make some change. Save and close
Step 3 - Check status git status
Step 4 - View the change git diff This shows the exact line added
Step 5 - Stage and commit
git add hello.txt
git commit -m "Updated hello.txt with second line"
We’ve now made a second commit!
-

View Commit History and File Versions

Step 1 - View commit history git log --oneline
Shows each commit in one line (handy summary)
Step 2 - See previous version of the file git show HEAD~1:hello.txt
HEAD~1 means: "One commit before the current one"
:hello.txt shows how the file looked in that commit.
Step 3 - See what changed between commits: git diff HEAD~1 HEAD
will see the exact difference between the last two versions
-

Create and Switch Branches

Step 1 - Create a new branch: git branch feature-1
Step 2 - Switch to that branch: git checkout feature-1
Step 3 - Make some change in hello.txt
Step 4 - Stage and commit git add hello.txt
git commit -m "Add feature line in hello.txt"
Step 5 - View all branches git branch
-

Merge Branches

Step 1 - Switch to main branch git checkout master
Step 2 - Merge the feature branch git merge feature-1
Step 3 - (Optional): Delete the feature branch git branch -d feature-1

We've now completed a full branching + merging cycle
-

Create a GitHub Repo and Push Your Code

Step 1 - Go to https://github.com and sign up or log in
Step 2 - Create a new repository
Step 3 - Push local repo to GitHub
git remote add origin https://github.com/YOUR_USERNAME/git-...
git branch -M main
git push -u origin main
remote add origin: connects your local repo to GitHub.
push -u origin main: uploads your code to the main branch.
Step 4 - Go to GitHub and refresh — our code is now online
-

Clone a Repository from GitHub

Step 1 - Copy your repo link
Step 2 - Run git clone https://github.com/your-username/git-...
Downloads the entire repo
Keeps full commit history and branches
Step 3 - Check the cloned project folder
✅ we now have a fresh copy of your project from GitHub
-




▬▬▬▬▬▬▬

Share with all who may need this

If my work has helped you, consider helping any animal near you, in any way you can

Never Stop Learning
Raghav Pal



▬▬▬▬ USEFUL LINKS ▬▬▬▬


✅ ALL TUTORIALS - https://AutomationStepByStep.com/


---

Learn Git and Git Bash with Hands-On Demo | Raghav Pal

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

GitHub Actions Step by Step DEMO for Beginners

GitHub Actions Step by Step DEMO for Beginners

Git and GitHub Beginner Tutorial 1 - Introduction

Git and GitHub Beginner Tutorial 1 - Introduction

China’s New Open AI Shocks OpenAI: DESTROYS Closed Model Limits (Better Than DeepSeek & Kimi)

China’s New Open AI Shocks OpenAI: DESTROYS Closed Model Limits (Better Than DeepSeek & Kimi)

Как устроен PHP 🐘: фундаментальное знание для инженеров

Как устроен PHP 🐘: фундаментальное знание для инженеров

Мини-проект Postman | Переключение сред и тестирование API на основе данных с помощью Runner

Мини-проект Postman | Переключение сред и тестирование API на основе данных с помощью Runner

NotebookLM: Таблицы из всего. 4 Способа применения

NotebookLM: Таблицы из всего. 4 Способа применения

Жалобы россиян попали к журналистам. Максим Курников

Жалобы россиян попали к журналистам. Максим Курников

Introduction to Git - Branching and Merging

Introduction to Git - Branching and Merging

Git Merge vs Git Rebase for Beginners

Git Merge vs Git Rebase for Beginners

КАК УСТРОЕН TCP/IP?

КАК УСТРОЕН TCP/IP?

Готово к работе с GitHub Spec Kit #1 — Введение и настройка

Готово к работе с GitHub Spec Kit #1 — Введение и настройка

💥7 МИНУТ НАЗАД! Хакеры стерли РЕЕСТР ПОВЕСТОК РФ! Уничтожены МИЛЛИОНЫ ДАННЫХ призывников - НАКИ

💥7 МИНУТ НАЗАД! Хакеры стерли РЕЕСТР ПОВЕСТОК РФ! Уничтожены МИЛЛИОНЫ ДАННЫХ призывников - НАКИ

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Я ошибался насчет git stash...

Я ошибался насчет git stash...

Изучите Git Rebase за 6 минут // объясняется с помощью живых анимаций!

Изучите Git Rebase за 6 минут // объясняется с помощью живых анимаций!

Docker за 20 минут

Docker за 20 минут

How To Use Git In VS Code Like A Pro!

How To Use Git In VS Code Like A Pro!

Build a FREE Local AI Chatbot for Your Business #AIChatbot #LocalAI #BuildChatbot #AIStartup

Build a FREE Local AI Chatbot for Your Business #AIChatbot #LocalAI #BuildChatbot #AIStartup

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Забудь VS Code — Вот Почему Все Переходят на Cursor AI

Git for Professionals Tutorial - Tools & Concepts for Mastering Version Control with Git

Git for Professionals Tutorial - Tools & Concepts for Mastering Version Control with Git

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]