hands-on lab

Using Git for Version Control: Managing Workflows

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 4,664
Rating: 4.7/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

Git is a version control system for tracking changes in code. In previous labs, you learned how to use both commits and branches in Git. Commits and branches are two of the most useful features in Git, but they're only a part of what Git has to offer. Companies also use Git because of the ability to combine features like commits and branches with workflow management principals like remotes (remote repositories holding the same codebase your local one does) and the ability to undo things like commits. Combined, all these resources begin to make Git the incredibly useful tool it is for version control management.

In this lab, you'll practice working with multiple remotes to show the distributed nature of Git. You'll also use Git to undo a commit.

Lab Objectives

Upon completion of this lab you will be able to:

  • Gain a better understanding of workflow management with Git
  • Work with multiple remotes
  • Undo bad commits

Intended Audience

This lab is intended for:

  • Developers
  • Cloud professionals
  • Anyone interested in using code

Prerequisites

You should be familiar with:

  • Our previous lab on Git commits
  • Our previous lab on Git branches
  • Basic understanding of the AWS Console is helpful but not required

Updates

September 24th, 2024 - Resolved command issue

March 12th, 2023 - Resolved an issue that caused the lab to fail to set up on rare occasions

May 23rd, 2022 - Updated the lab to use Cloud Academy's hosted web terminal

March 24th, 2022 - Updated screenshots to match UI

July 20th, 2021 - Updated the lab infrastructure to reduce the time needed to connect to the Git Host instance

May 12th, 2020 - Updated the lab infrastructure to enforce a more accurate startup time

Environment before

Environment after

Covered topics

Lab steps

Cloning a Git Repository
Working With Remotes in Git
Undoing Changes in Git