Using Git for Version Control: Top 10 Git Commands

Lab Steps

Logging in to the Amazon Web Services Console
Connecting to a Git Host
Working With Git Stash, Pop and Blame
Working With Git Diff, Reset, Checkout and Branch
Working With Git Log, Show and Tag

The hands-on lab is part of this learning path

Ready for the real environment experience?

Time Limit45m
star star star star-half star-border


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 a subjective list of 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


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
Environment before
Environment after

About the Author

Learning paths1

Matt has worked for multiple Fortune 500 companies as a DevOps Engineer and Solutions Architect. He is an AWS Certified Solution Architect - Associate, AWS Certified SysOps Administrator - Associate and an AWS Certified Developer - Associate. He enjoys reading and learning new technologies.

Covered Topics