hands-on lab

Using Git for Version Control: Top 10 Git Commands

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 4,822
Rating: 4.1/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 managing and tracking changes in code. In previous labs, you learned how to use commits, branches, and other tools to manage workflows. Developers also use other tools in Git and some are more commonly used and apply to a wider range of scenarios than others.

In this lab, you'll work on a subjective list of the top 10 Git commands. These commands will cover a wide range of use cases and with them, you'll be equipped to efficiently manage workflows like an expert. To give you the most benefit, this lab won't cover some of the most basic or common commands, such as clone, push, pull and merge. While those are certainly among the most used and useful commands, they're common enough you probably won't have any issues remembering them. 

Lab Objectives

Upon completion of this lab you will be able to:

  • Be a more effective Git user

Intended Audience

This lab is intended for:

  • Developers
  • Cloud professionals
  • Anyone interested in using code

Prerequisites

You should be familiar with:

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

Updates

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

September 6th, 2021 - Reduced instance startup delay time ~60%

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

Environment before

Environment after

Covered topics

Lab steps

Working With Git Stash, Pop and Blame
Working With Git Diff, Reset, Checkout and Branch
Working With Git Log, Show and Tag