Menu

Log in

Sign up

From beginner to master of web design, coding, infrastructure operation, business development and marketing

  • COURSES
  • HTML & CSS Introduction
  • HTML & CSS Coding with AI
  • Linux Introduction
  • Docker Basics
  • Git & GitHub Introduction
  • JavaScript Coding with AI
  • Django Introduction
  • AWS Basics
  • Figma Introduction
  • AI Image Prompting
  • AI Image & Video Midjourney Guide
  • SEO Tutorial for Beginners
  • SEO with AI
  • OTHERS
  • About
  • Terms of Service
  • Privacy Policy

© 2024 D-Libro. All Rights Reserved

Git & GitHub Introduction

Git & GitHub Introduction

Git & GitHub Tutorial for Beginners - Intro Course for Git & GitHub

Unlock the basics with our Git & GitHub tutorial for beginners. Ideal for newcomers, this course covers Git & GitHub fundamentals. Gain essential skills and a solid intro to Git & GitHub with our course.

Start Chapter 1

Chapter 1. Git & GitHub Key Concepts

7 lessons

Chapter Information

Git & GitHub Overview

Chapter 1. Git & GitHub Overview

What Is Git?

What Is Git?

Understanding Version Control

What Is Version Control?

How to Save Versions in Git

How To Save Versions in Git?

Collaborating on Git & GitHub - Remote Repository

Collaborating on Git & GitHub – Remote Repository

Collaborating on Git & Git Hub - Branch

Collaborating on Git & Git Hub – Branch

Git & GitHub Basic Life Cycle

Git & GitHub Basic Life Cycle

Git & GitHub Overview

Chapter 1. Git & GitHub Overview

What Is Git?

What Is Git?

Understanding Version Control

What Is Version Control?

How to Save Versions in Git

How To Save Versions in Git?

Collaborating on Git & GitHub - Remote Repository

Collaborating on Git & GitHub – Remote Repository

Collaborating on Git & Git Hub - Branch

Collaborating on Git & Git Hub – Branch

Git & GitHub Basic Life Cycle

Git & GitHub Basic Life Cycle

Chapter 2. Git & GitHub Initial Settings

10 lessons

Chapter Information

Configuring Git & GitHub Settings

Chapter 2. Git & GitHub Initial Settings

Git & GitHub Initial Settings Overview

Git & GitHub Initial Settings Overview

Setting Up Git & GitHub on Mac

Key Tool Preparation (1) – Mac

Setting Up Git & GitHub on Windows

Key Tool Preparation (2) – Windows

Git & GitHub Configuration for Linux Remote Servers

Key Tool Preparation (3) – Linux Remote Server

Configuring Git User Settings

Git User Settings – git config

Creating a GitHub Account

Create GitHub Account

How to Configure GitHub Access

GitHub Access Authentication Settings

Generating Personal Access Tokens (PAT)

Generating PAT (Personal Access Token)

How to Establish GitHub SSH Connection

GitHub SSH Setup

Configuring Git & GitHub Settings

Chapter 2. Git & GitHub Initial Settings

Git & GitHub Initial Settings Overview

Git & GitHub Initial Settings Overview

Setting Up Git & GitHub on Mac

Key Tool Preparation (1) – Mac

Setting Up Git & GitHub on Windows

Key Tool Preparation (2) – Windows

Git & GitHub Configuration for Linux Remote Servers

Key Tool Preparation (3) – Linux Remote Server

Configuring Git User Settings

Git User Settings – git config

Creating a GitHub Account

Create GitHub Account

How to Configure GitHub Access

GitHub Access Authentication Settings

Generating Personal Access Tokens (PAT)

Generating PAT (Personal Access Token)

How to Establish GitHub SSH Connection

GitHub SSH Setup

Chapter 3. Git & GitHub Project Setup

16 lessons

Chapter Information

Initiating Git & GitHub Project

Chapter 3. Git & GitHub Project Setup

Git & GitHub Project Setup Scenarios

Three Cases in Git & GitHub Project Setup

How to Set Up Git & GitHub Projects for Different Roles

Git & GitHub Project Setup Overview in Different Cases

Building a Remote Collaboration Environment with Git & GitHub

Building Remote Collaboration Practice Environment

Launching Your Git Project: Key Steps Explained

Project Initiator – Key Steps To Launch Git Project

How to Create a Local Repository with git init

Project Initiator – Create Local Repository (git init)

Making the First Commit in Your Git Project

Project Initiator – Make the First Commit

Understanding the .gitignore File in Git Projects

Project Initiator – .gitignore File

Creating a Remote Repository on GitHub

Project Initiator – Create Remote Repository

How to Link Your Local and Remote Repositories with git remote add

Project Initiator – Link Between Remote and Local Repositories (git remote add)

How to Use git push to Upload Your Local Repository

Project Initiator – Upload Local Repository to Remote Repository (git push)

Granting Remote Repository Access on GitHub

Project Initiator – Grant Remote Repository Access to Project Members

Starting a Project as a Collaborator with Git & GitHub

Project Member – Start Project As Collaborator

Creating a Local Copy of a Project with git clone

Project Member – Create Copy of Project Code on Local Computer (git clone)

Forking: How to Start a Project with a Replica of an Existing Git Repository

Non-Member – Start Project With Replica of Existing Repository (Fork)

Understanding Fork vs. Clone in Git & GitHub

Fork vs. Clone

Initiating Git & GitHub Project

Chapter 3. Git & GitHub Project Setup

Git & GitHub Project Setup Scenarios

Three Cases in Git & GitHub Project Setup

How to Set Up Git & GitHub Projects for Different Roles

Git & GitHub Project Setup Overview in Different Cases

Building a Remote Collaboration Environment with Git & GitHub

Building Remote Collaboration Practice Environment

Launching Your Git Project: Key Steps Explained

Project Initiator – Key Steps To Launch Git Project

How to Create a Local Repository with git init

Project Initiator – Create Local Repository (git init)

Making the First Commit in Your Git Project

Project Initiator – Make the First Commit

Understanding the .gitignore File in Git Projects

Project Initiator – .gitignore File

Creating a Remote Repository on GitHub

Project Initiator – Create Remote Repository

How to Link Your Local and Remote Repositories with git remote add

Project Initiator – Link Between Remote and Local Repositories (git remote add)

How to Use git push to Upload Your Local Repository

Project Initiator – Upload Local Repository to Remote Repository (git push)

Granting Remote Repository Access on GitHub

Project Initiator – Grant Remote Repository Access to Project Members

Starting a Project as a Collaborator with Git & GitHub

Project Member – Start Project As Collaborator

Creating a Local Copy of a Project with git clone

Project Member – Create Copy of Project Code on Local Computer (git clone)

Forking: How to Start a Project with a Replica of an Existing Git Repository

Non-Member – Start Project With Replica of Existing Repository (Fork)

Understanding Fork vs. Clone in Git & GitHub

Fork vs. Clone

Chapter 4. Edit & Commit

13 lessons

Chapter Information

How to Edit and Commit using Git Commands

Chapter 4. Edit & Commit

Using Git's Regular Workflow: Edit & Commit

Git Regular Workflow – Edit & Commit

Git's Edit and Commit Overview

Edit and Commit Overview (1)

Adding Files to the Staging Area with git add

Add Files to Staging Area – git add

How to Commit Files with git commit

Commit Files – git commit

Understanding Git's HEAD and INDEX

HEAD and INDEX

Using git status to Check Your Working Tree

Check Status of Working Tree and Staging Area – git status

Viewing Commit Histories with git log

Check Commit Histories – git log

Identifying Changes with git diff

Check Differences – git diff

Restoring Files with git restore

Restore Files to Working Tree – git restore

Resetting Changes with git reset

Undo Changes – git reset

Deleting Files with git rm

Delete Files – git rm

Preparing for Git Branches in Edit and Commit

Edit and Commit Overview (2)

How to Edit and Commit using Git Commands

Chapter 4. Edit & Commit

Using Git's Regular Workflow: Edit & Commit

Git Regular Workflow – Edit & Commit

Git's Edit and Commit Overview

Edit and Commit Overview (1)

Adding Files to the Staging Area with git add

Add Files to Staging Area – git add

How to Commit Files with git commit

Commit Files – git commit

Understanding Git's HEAD and INDEX

HEAD and INDEX

Using git status to Check Your Working Tree

Check Status of Working Tree and Staging Area – git status

Viewing Commit Histories with git log

Check Commit Histories – git log

Identifying Changes with git diff

Check Differences – git diff

Restoring Files with git restore

Restore Files to Working Tree – git restore

Resetting Changes with git reset

Undo Changes – git reset

Deleting Files with git rm

Delete Files – git rm

Preparing for Git Branches in Edit and Commit

Edit and Commit Overview (2)

Chapter 5. Work With Branches

15 lessons

Chapter Information

How to Work with Branches in Git

Chapter 5. Work With Branches

How to Use Branch Management in Git Workflow

Git Regular Workflow – Work With Branches

Understanding Branches in Git with Diagrams

What Is Branch?

Git Branch Operation Lifecycle Steps

Branch Operation Basic Life Cycle

Creating and Managing Branches with git branch

Create Branch and Check Branch Status – Git Branch

How to Switch Branches Using git checkout

Switch Current Branch (1) – Git Checkout

Switching Branches Easily with git switch

Switch Current Branch (2) – Git Switch

Understanding Different Git Merge Types

Merge Branches – Git Merge

What is Fast-Forward Merge in Git

Fast-Forward Merge

Exploring Non-Fast-Forward Merge in Git

Non-Fast-Forward Merge (No Option)

Using --no-ff Option for Non-Fast-Forward Merge in Git

Non-Fast-Forward Merge (--no-ff Option)

How to Use Squash Merge in Git

Squash Merge

Applying Changes with Git Rebase

Rebase Branch – Git Rebase

How to Manage Conflicts in Git

Managing Conflict

Stashing Work-in-Progress with Git Stash

Stash Changes – Git Stash

How to Work with Branches in Git

Chapter 5. Work With Branches

How to Use Branch Management in Git Workflow

Git Regular Workflow – Work With Branches

Understanding Branches in Git with Diagrams

What Is Branch?

Git Branch Operation Lifecycle Steps

Branch Operation Basic Life Cycle

Creating and Managing Branches with git branch

Create Branch and Check Branch Status – Git Branch

How to Switch Branches Using git checkout

Switch Current Branch (1) – Git Checkout

Switching Branches Easily with git switch

Switch Current Branch (2) – Git Switch

Understanding Different Git Merge Types

Merge Branches – Git Merge

What is Fast-Forward Merge in Git

Fast-Forward Merge

Exploring Non-Fast-Forward Merge in Git

Non-Fast-Forward Merge (No Option)

Using --no-ff Option for Non-Fast-Forward Merge in Git

Non-Fast-Forward Merge (--no-ff Option)

How to Use Squash Merge in Git

Squash Merge

Applying Changes with Git Rebase

Rebase Branch – Git Rebase

How to Manage Conflicts in Git

Managing Conflict

Stashing Work-in-Progress with Git Stash

Stash Changes – Git Stash

Chapter 6. Remote Collaboration

10 lessons

Chapter Information

Collaborating Remotely with Git and GitHub

Chapter 6. Remote Collaboration

How to Remote Collaboration in Git

Git Regular Workflow – Remote Collaboration

Overview of Remote Collaboration with Git and GitHub

Remote Collaboration Overview

Establishing a Link with git remote

Link With Remote Repository – Git Remote

How to Upload Changes with git push

Upload to Remote Repository – Git Push

Merging Remote Changes Locally with git pull

Download Remote Repository and Merge to Local Repository – Git Pull

Updating Local Repository with git fetch

Get Remote Repository Information to Local Repository – Git Fetch

Understanding the Differences Between Pull and Fetch

Pull vs. Fetch

How to Make a Pull Request on GitHub

Request for Review and Merge – Pull Request

How to Merge Using GitHub

Merge Operation Using GitHub

Collaborating Remotely with Git and GitHub

Chapter 6. Remote Collaboration

How to Remote Collaboration in Git

Git Regular Workflow – Remote Collaboration

Overview of Remote Collaboration with Git and GitHub

Remote Collaboration Overview

Establishing a Link with git remote

Link With Remote Repository – Git Remote

How to Upload Changes with git push

Upload to Remote Repository – Git Push

Merging Remote Changes Locally with git pull

Download Remote Repository and Merge to Local Repository – Git Pull

Updating Local Repository with git fetch

Get Remote Repository Information to Local Repository – Git Fetch

Understanding the Differences Between Pull and Fetch

Pull vs. Fetch

How to Make a Pull Request on GitHub

Request for Review and Merge – Pull Request

How to Merge Using GitHub

Merge Operation Using GitHub

Chapter 7. Supplemental Topics

4 lessons

Chapter Information

Mastering Git and GitHub: Supplemental Topics

Chapter 7. Supplemental Topics

Key Git Commands and GitHub Features Cheat Sheet

Git Key Commands and GitHub Key Features

Git and GitHub Glossary of Terms

Git & GitHub Glossary

Exploring GitHub's Additional Features

GitHub Other Features

Mastering Git and GitHub: Supplemental Topics

Chapter 7. Supplemental Topics

Key Git Commands and GitHub Features Cheat Sheet

Git Key Commands and GitHub Key Features

Git and GitHub Glossary of Terms

Git & GitHub Glossary

Exploring GitHub's Additional Features

GitHub Other Features

Git & GitHub for Beginners: A Comprehensive Course Guide

Who is this Git & GitHub Tutorial Course for?

tab-1
  • Complete beginners in Git and GitHub
  • Coders who are not confident in using Git and GitHub
  • Anyone who wants to collaborate with others on code projects using GitHub

Introduction to Git & GitHub Tutorial

Version Control System (VCS) is one of the most critical tools for coding and digital application development. Git is the most commonly used version control system, created by Linus Torvalds in 2005 for the development of the Linux kernel. GitHub is one of the most popular Remote Repository services based on the Git platform.

In this course, we’ll explain how to use Git as a version control system and how to collaborate with other developers on GitHub.

Throughout this course, you will learn:

  • Key Concepts of Git and GitHub
  • How to set up Git projects
  • How to use Git Branches
  • How to collaborate with others using GitHub repository

What you will achieve in this Git & GitHun Tutorial

Full understanding of Git and GitHub Mechanism

You’ll fully understand how Git and GitHub work with well-designed illustrations.

How Git and GitHub Work
Master Git Commands

You’ll master 20 essential Git commands with meticulously designed practice materials.

Git Diff Command
Master Commit and Branch Operations

You’ll clearly understand complex branch and commit operations through easy-to-understand guidance.

Git Branch Merge Operations
Start Collaborating on GitHub

You’ll be able to collaborate with other developers through the GitHub platform.

Collaboration with the GitHub platform

How to learn Git & GitHub with this course?

Here is a guidance on how to use this course effectively. You can read this part later when you start to learn relevant topics.

Command Line and Code Snippet

In this course, we use various types of commands and code snippets.

1. Command Line Input

You can use the code snippet below to run commands. When you move your cursor onto the top right corner, you can find the copy icon to copy the snippet.

Command Line - INPUT
$ git branch Branch_A

After you copy the code, paste it into your command line as shown in the video below.

 

You can also copy multi-line code and run the commands as shown in the video below.

 
2. Command Line Response

You can see the command line response or output from this code snippet below.

Example
Command Line - RESPONSE
446fa13 (HEAD -> master) Modified commit
acc4aa4 (origin/master) added .gitignore file
651e510 the first commit
3. Text Editor

You can use this code snippet below for editing code in a text editor. When you move your cursor onto the top right corner, you can find a copy icon to copy the snippet.

Example
Text Editor

<!doctype html>
<html lang="en">
<head>
 <style>
 h1 {
  color: blue;
  font-size:80px
 }
 </style>
</head>
<body>
 <h1>Hello World!</h1>
</body>

Project Directory Structure

Throughout the course, we'll set up several practice projects. For each practice project, we'll create a project directory. We'll also create a main project directory to organize the practice directories. Here are the example directory structures that are used in this course. There are two sets of directory trees for the project owner role and the project member role.

Note: The screenshots below are taken using the Mac OS computer. The name of the parent directory for each user's home directory differs by OS.

Example – the project owner's directory structure (Developer A)
Git project directory structure example 1
Example – the project member's directory structure (Developer B)
Git project directory structure example 2

A GitHub repository is also available for the demo code used in the practice sections. Check the link below to access the repository.

Demo Code github