hands-on lab

Using Git for Version Control: Commits

Difficulty: Beginner
Duration: Up to 1 hour
Students: 6,450
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. Version control systems allow developers to conveniently track changes made to their code. Using commits, which can be thought of as incremental saves to a file or group of files, companies have the ability to track changes, compare different versions of a file, and revert to previous version of files with ease. Companies use Git because it is one of the most popular version control systems available for a variety of reasons, including its ease of use for beginners, clear structure when comparing commits, and integration with some of the world's most popular version control hosting platforms.

In this lab, you'll practice using Git to clone a repository, make a change to a file and commit that change using Git. You'll also learn more about the basics of version control with Git.

Lab Objectives

Upon completion of this lab you will be able to:

  • Understand the basic terminology of Git
  • Use git to clone a Github repository
  • Use Git strategies including branching and commits

Intended Audience

This lab is intended for:

  • Developers
  • Cloud professionals
  • Anyone interested in using code

Prerequisites

You should be familiar with:

  • Basic understanding of the AWS Console is helpful but not required
  • Basic understanding of EC2. You can get more info following this link

Updates

July 30th, 2024 - Resolved timeout issue

December 19th, 2022 - Added hints to the validation checks

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

December 21st, 2020 - Updated outdated UI screenshots

May 12th, 2020 - Updated the provisioning block to enforce a more accurate startup time

Environment before

Environment after

Covered topics

Lab steps

Using Git to Clone a GitHub Repository
Working With Files in Git