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
  • SEO Tutorial for Beginners
  • SEO with AI
  • OTHERS
  • About
  • Terms of Service
  • Privacy Policy

© 2024 D-Libro. All Rights Reserved

Git & GitHub IntroductionChapter 2. Git & GitHub Initial Settings

Chapter 2. Git & GitHub Initial Settings

Configuring Git & GitHub Settings

For programming beginners, the first hurdle to using Git and GitHub may be setting up the environment properly. The setup process differs based on the operating system (Mac, Windows, and Linux). In this chapter, we'll guide you through the necessary steps to configure Git and GitHub on different platforms with practical examples.

What We Cover in This Chapter

The following topics are covered in this chapter:

Git & GitHub Initial Settings Overview

In this section, we'll provide an overview of the key steps required to set up Git and GitHub. We'll explain the required tools and software and discuss different installation approaches.

Key Tool Preparation (1) – Mac

If you're using macOS, Git may already be preinstalled on your system. In this section, we'll cover how to check your Git installation, install it if necessary, and configure essential tools like Visual Studio Code and the macOS Terminal.

Key Tool Preparation (2) – Windows

Setting up Git on Windows requires additional steps. In this section, we'll walk through installing Git for Windows, setting up Git Bash as the command line interface, and configuring VS Code for seamless Git integration.

Key Tool Preparation (3) – Linux Remote Server

For those working on remote Linux servers, Git setup involves additional configurations. We'll cover how to install Git on Linux, manage remote connections, and configure Git for effective collaboration on a remote server.

Git User Settings – git config

In this section, we’ll explore how to configure your Git identity using git config. You'll learn how to set up your username and email address, choose a default text editor, and verify or modify your settings.

Create GitHub Account

To use GitHub, you need to create an account. In this section, we'll guide you through the sign-up process, explain the available account plans, and show how to customize your user profile.

GitHub Access Authentication Settings

GitHub requires authentication for secure access. We'll cover different authentication methods, including HTTPS (using a Personal Access Token) and SSH (using key pairs). Understanding these methods is crucial for secure GitHub interactions.

Generating PAT (Personal Access Token)

Personal Access Tokens (PATs) are required for HTTPS-based authentication with GitHub. In this section, we’ll walk through generating a PAT, setting appropriate permissions, and using it to authenticate Git commands securely.

GitHub SSH Setup

SSH authentication provides a secure and convenient way to interact with GitHub without repeatedly entering credentials. We'll explain how to generate SSH key pairs, upload the public key to GitHub, and test SSH connections.

Learn offline for better focus!
A book for this course is available on Amazon.

Git & GitHub Visual Guide

The Hands-On Manual for Complete Beginners to Master Version Control and Remote Coding Collaboration

Your browser does not support the video tag.
Get the Book Now

More Topics to Explore

Displaying User and Group Data with getent Command

getent (Display User and Group Data)

How to Work with Branches in Git

Chapter 5. Work With Branches

Utilizing ls Command in Linux

ls (List Contents of Directory)

Updating Django Production Settings

Django Production Settings (2) – Production Settings

Exploring find Command in Linux

find (Find File and Directory)

Displaying User and Group Data with getent Command

getent (Display User and Group Data)

How to Work with Branches in Git

Chapter 5. Work With Branches

Utilizing ls Command in Linux

ls (List Contents of Directory)

Updating Django Production Settings

Django Production Settings (2) – Production Settings

Exploring find Command in Linux

find (Find File and Directory)

Tags:

Git

GitHub

Git & GitHub Introduction
Course Content

Chapter 1. Git & GitHub Overview

What Is Git?

What Is Version Control?

How To Save Versions in Git?

Collaborating on Git & GitHub – Remote Repository

Collaborating on Git & Git Hub – Branch

Git & GitHub Basic Life Cycle

Chapter 2. Git & GitHub Initial Settings

Git & GitHub Initial Settings Overview

Key Tool Preparation (1) – Mac

Key Tool Preparation (2) – Windows

Key Tool Preparation (3) – Linux Remote Server

Git User Settings – git config

Create GitHub Account

GitHub Access Authentication Settings

Generating PAT (Personal Access Token)

GitHub SSH Setup

Chapter 3. Git & GitHub Project Setup

Three Cases in Git & GitHub Project Setup

Git & GitHub Project Setup Overview in Different Cases

Building Remote Collaboration Practice Environment

Project Initiator – Key Steps To Launch Git Project

Project Initiator – Create Local Repository (git init)

Project Initiator – Make the First Commit

Project Initiator – .gitignore File

Project Initiator – Create Remote Repository

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

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

Project Initiator – Grant Remote Repository Access to Project Members

Project Member – Start Project As Collaborator

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

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

Fork vs. Clone

Chapter 4. Edit & Commit

Git Regular Workflow – Edit & Commit

Edit and Commit Overview (1)

Add Files to Staging Area – git add

Commit Files – git commit

HEAD and INDEX

Check Status of Working Tree and Staging Area – git status

Check Commit Histories – git log

Check Differences – git diff

Restore Files to Working Tree – git restore

Undo Changes – git reset

Delete Files – git rm

Edit and Commit Overview (2)

Chapter 5. Work With Branches

Git Regular Workflow – Work With Branches

What Is Branch?

Branch Operation Basic Life Cycle

Create Branch and Check Branch Status – Git Branch

Switch Current Branch (1) – Git Checkout

Switch Current Branch (2) – Git Switch

Merge Branches – Git Merge

Fast-Forward Merge

Non-Fast-Forward Merge (No Option)

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

Squash Merge

Rebase Branch – Git Rebase

Managing Conflict

Stash Changes – Git Stash

Chapter 6. Remote Collaboration

Git Regular Workflow – Remote Collaboration

Remote Collaboration Overview

Link With Remote Repository – Git Remote

Upload to Remote Repository – Git Push

Download Remote Repository and Merge to Local Repository – Git Pull

Get Remote Repository Information to Local Repository – Git Fetch

Pull vs. Fetch

Request for Review and Merge – Pull Request

Merge Operation Using GitHub

Chapter 7. Supplemental Topics

Git Key Commands and GitHub Key Features

Git & GitHub Glossary

GitHub Other Features

Chapter 1. Git & GitHub Overview

What Is Git?

What Is Version Control?

How To Save Versions in Git?

Collaborating on Git & GitHub – Remote Repository

Collaborating on Git & Git Hub – Branch

Git & GitHub Basic Life Cycle

Chapter 2. Git & GitHub Initial Settings

Git & GitHub Initial Settings Overview

Key Tool Preparation (1) – Mac

Key Tool Preparation (2) – Windows

Key Tool Preparation (3) – Linux Remote Server

Git User Settings – git config

Create GitHub Account

GitHub Access Authentication Settings

Generating PAT (Personal Access Token)

GitHub SSH Setup

Chapter 3. Git & GitHub Project Setup

Three Cases in Git & GitHub Project Setup

Git & GitHub Project Setup Overview in Different Cases

Building Remote Collaboration Practice Environment

Project Initiator – Key Steps To Launch Git Project

Project Initiator – Create Local Repository (git init)

Project Initiator – Make the First Commit

Project Initiator – .gitignore File

Project Initiator – Create Remote Repository

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

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

Project Initiator – Grant Remote Repository Access to Project Members

Project Member – Start Project As Collaborator

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

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

Fork vs. Clone

Chapter 4. Edit & Commit

Git Regular Workflow – Edit & Commit

Edit and Commit Overview (1)

Add Files to Staging Area – git add

Commit Files – git commit

HEAD and INDEX

Check Status of Working Tree and Staging Area – git status

Check Commit Histories – git log

Check Differences – git diff

Restore Files to Working Tree – git restore

Undo Changes – git reset

Delete Files – git rm

Edit and Commit Overview (2)

Chapter 5. Work With Branches

Git Regular Workflow – Work With Branches

What Is Branch?

Branch Operation Basic Life Cycle

Create Branch and Check Branch Status – Git Branch

Switch Current Branch (1) – Git Checkout

Switch Current Branch (2) – Git Switch

Merge Branches – Git Merge

Fast-Forward Merge

Non-Fast-Forward Merge (No Option)

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

Squash Merge

Rebase Branch – Git Rebase

Managing Conflict

Stash Changes – Git Stash

Chapter 6. Remote Collaboration

Git Regular Workflow – Remote Collaboration

Remote Collaboration Overview

Link With Remote Repository – Git Remote

Upload to Remote Repository – Git Push

Download Remote Repository and Merge to Local Repository – Git Pull

Get Remote Repository Information to Local Repository – Git Fetch

Pull vs. Fetch

Request for Review and Merge – Pull Request

Merge Operation Using GitHub

Chapter 7. Supplemental Topics

Git Key Commands and GitHub Key Features

Git & GitHub Glossary

GitHub Other Features