Complete Git and GitHub Tutorial

This tutorial will help you with using Git & GitHub for your personal projects and contributing to Open Source, with no prerequisites, in an easy to understand language. It starts from the very basics of Git & GitHub, covering all the essential commands, including concepts such as branching, pull requests, forking, etc. We also cover other concepts such as squashing, resolving merge conflicts, keeping your code in sync, and more. NOTE: Windows users can use git bash, all the commands will work. When using git for the first time, set the global configs using the commands: $ git config --global user.name "your_name" $ git config --global user.email your_email Git/GitHub cheat sheet: https://education.github.com/git-chea... Download Git: https://git-scm.com/downloads Complete Java DSA playlist:    • Java + DSA + Interview Preparation Course   Code & notes for DSA lectures: https://github.com/kunal-kushwaha/DSA... ➡️ Connect with me: https://www.techwithkunal.com ========================================= Timestamps: 0:00 Introduction 0:25 What is Git and Github? 3:45 Why are we using Git and Github? 5:15 Downloading Git 6:00 Structure of the Tutorial 6:18 Some basic Linux commands 8:22 Initializing a Git Repository 9:48 Making the first change 13:43 Staging the first change 14:40 Commiting the first change 16:12 Adding data to files 17:24 Removing changes from stage 18:14 Viewing the overall history of the project 18:52 Making few more commits 19:31 Removing a commit from the history of a project 21:35 Stashing changes 24:25 Popping Stash 25:00 Clearing Stash 25:26 Starting Github 26:10 Creating a new repository on Github 26:40 Connecting Remote Repository to Local Repository 28:05 Pushing local changes to remote repository 28:43 What are branches? 31:10 Use of branches 32:42 Making a new branch and switching to it (Learn Git Branching) 34:28 Merging branch to main (Learn Git Branching) 36:00 Pushing new changes to master branch 37:10 Working with Existing Projects 37:38 Why Fork and How to Fork? 39:00 Cloning the forked project to local 40:10 What is Upstream and adding it to local 41:00 What is a Pull Request? 45:28 Never commit on main branch & creating our first pull request 51:04 Removing a commit from the pull request by force pushing to it 52:56 Merging a Pull Request 53:28 Making forked project even with main project 59:46 Instructions on how to try doing these on your own 1:00:20 Squashing commits 1:01:59 Using the Rebase command 1:04:35 Using the hard flag to reset 1:05:11 Merge conflicts and how to resolve them? 1:11:00 What to do next? #git #github

Complete GitHub Actions Course - From BEGINNER to PRO
▶︎

Complete GitHub Actions Course - From BEGINNER to PRO

Git And Github For Beginners in 2022! Sponsored By Microsoft! (class 24) - #100Devs
▶︎

Git And Github For Beginners in 2022! Sponsored By Microsoft! (class 24) - #100Devs

Learn Git – Full Course for Beginners
▶︎

Learn Git – Full Course for Beginners

JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Course | Intellipaat
▶︎

JavaScript Tutorial For Beginners | JavaScript Training | JavaScript Course | Intellipaat

Git Tutorial for Beginners - Git & GitHub Fundamentals In Depth
▶︎

Git Tutorial for Beginners - Git & GitHub Fundamentals In Depth

SQL Course for Beginners [Full Course]
▶︎

SQL Course for Beginners [Full Course]

Kubernetes Tutorial for Beginners [FULL COURSE in 4 Hours]
▶︎

Kubernetes Tutorial for Beginners [FULL COURSE in 4 Hours]

Git and GitHub Tutorial For Beginners | Full Course [2021] [NEW]
▶︎

Git and GitHub Tutorial For Beginners | Full Course [2021] [NEW]

Introduction to Recursion - Learn In The Best Way
▶︎

Introduction to Recursion - Learn In The Best Way

Computer Networking Full Course - OSI Model Deep Dive with Real Life Examples
▶︎

Computer Networking Full Course - OSI Model Deep Dive with Real Life Examples

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat
▶︎

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

PHP Full Course For Beginners | PHP Full Course | PHP Tutorial | Intellipaat
▶︎

PHP Full Course For Beginners | PHP Full Course | PHP Tutorial | Intellipaat

Strings and StringBuilder in Java
▶︎

Strings and StringBuilder in Java

Git & GitHub Free Full Masterclass with Beginner to Advanced topics 2025
▶︎

Git & GitHub Free Full Masterclass with Beginner to Advanced topics 2025

Free Event: Power BI Beginner to Pro 2026 Edition - Full Hands-On Tutorial
▶︎

Free Event: Power BI Beginner to Pro 2026 Edition - Full Hands-On Tutorial

MERN Stack Tutorial for Beginners with Deployment – 2025
▶︎

MERN Stack Tutorial for Beginners with Deployment – 2025

Git Tutorial for Beginners: Learn Git in 1 Hour
▶︎

Git Tutorial for Beginners: Learn Git in 1 Hour

Git For Beginners
▶︎

Git For Beginners

Jfrog | Jfrog Artifactory | Jfrog Artifactory Tutorial | Artifactory Tutorial | Intellipaat
▶︎

Jfrog | Jfrog Artifactory | Jfrog Artifactory Tutorial | Artifactory Tutorial | Intellipaat

Git & GitHub Crash Course for Beginners [2026]
▶︎

Git & GitHub Crash Course for Beginners [2026]

Binary Search Interview Questions - Google, Facebook, Amazon
▶︎

Binary Search Interview Questions - Google, Facebook, Amazon

NestJS Full Course for Beginners in 2026 | Build a Production-Ready API
▶︎

NestJS Full Course for Beginners in 2026 | Build a Production-Ready API

Git and GitHub - Full Course
▶︎

Git and GitHub - Full Course

How to Build & Sell AI Agents: Ultimate Beginner’s Guide
▶︎

How to Build & Sell AI Agents: Ultimate Beginner’s Guide

Git and GitHub for Beginners - Crash Course
▶︎

Git and GitHub for Beginners - Crash Course

Complete GIT Masterclass For Beginners | Learn Advanced GIT | Part 1 | Version Control System
▶︎

Complete GIT Masterclass For Beginners | Learn Advanced GIT | Part 1 | Version Control System

Complete git and Github course in Hindi
▶︎

Complete git and Github course in Hindi

Complete Git and GitHub Tutorial for Beginners 2025 || Zero to Hero Git Master Class #sdet #devops
▶︎

Complete Git and GitHub Tutorial for Beginners 2025 || Zero to Hero Git Master Class #sdet #devops