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 6. Remote Collaboration

Chapter 6. Remote Collaboration

Collaborating Remotely with Git and GitHub

Remote collaboration is a vital skill for any developer working in teams. This chapter will guide you through the core aspects of collaborating on code repositories remotely using Git and GitHub. You will learn how to interact with remote repositories, upload and download changes, and how to contribute to projects by creating pull requests. By the end of this chapter, you’ll be equipped to effectively collaborate with others and manage your code on remote servers.

What We Cover in This Chapter

The following topics are covered in this chapter:

Git Regular Workflow – Remote Collaboration

In this section, we’ll discuss how Git supports regular workflows for remote collaboration. You’ll learn about key Git commands used for linking, pushing, and pulling data to and from remote repositories, as well as the GUI operations available on GitHub.

Remote Collaboration Overview

In this section, we’ll explore the typical workflow of remote collaboration, where a developer works locally and synchronizes their changes with a remote repository on GitHub. Key steps include pushing local changes, pulling updates from the remote repository, etc.

Link With Remote Repository – Git Remote

In this section, we’ll explain how to link your local repository to a remote repository using the git remote command. You’ll learn how to add, list, remove, and update remote links in Git, as well as how to verify the status of your connections.

Upload to Remote Repository – Git Push

In this section, we’ll demonstrate how to push changes from your local repository to a remote repository using the git push command. We'll explore different cases such as pushing existing branches, new branches, and handling conflicts during the push operation.

Download Remote Repository and Merge to Local Repository – Git Pull

This section covers how to use the git pull command to fetch and merge changes from a remote repository to your local repository. We’ll discuss the differences between git pull and git fetch and when to use each command.

Get Remote Repository Information to Local Repository – Git Fetch

In this section, we’ll explain how to use the git fetch command to obtain the latest information about remote repositories without merging the changes automatically. This command is useful for reviewing updates before performing a merge.

Pull vs. Fetch

In this section, we’ll compare the git pull and git fetch commands, highlighting the differences in their usage. We’ll discuss when to use one over the other based on the specific workflow and collaboration needs.

Request for Review and Merge – Pull Request

This section covers the concept of creating a pull request on GitHub, which is used to request code reviews and merge changes from a topic branch into the main branch. We’ll explore how to initiate a pull request, handle feedback, and finalize the merge.

Merge Operation Using GitHub

In this section, we’ll explain how to perform merge operations directly on GitHub, offering three approaches: create a merge commit, squash and merge, and rebase and merge. We’ll provide examples of when and how to use each approach.

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

How to Do Linux Command Syntax

Linux Command Syntax

Chapter 5. Building and Sharing Docker Images

Chapter 5. Building and Sharing Docker Images

Understanding Firewalls in Linux

Firewall

Implementing SSL with Certbot for Django

SSL Setup – Certbot

Handling Special Characters in Linux

Special Characters and Escape Character

How to Do Linux Command Syntax

Linux Command Syntax

Chapter 5. Building and Sharing Docker Images

Chapter 5. Building and Sharing Docker Images

Understanding Firewalls in Linux

Firewall

Implementing SSL with Certbot for Django

SSL Setup – Certbot

Handling Special Characters in Linux

Special Characters and Escape Character

Tags:

Git

GitHub

Remote Repository

Remote Collaboration

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