Difficulty: Beginner
Estimated Time: 15 minutes

Welcome to the Intro to Git Scenario!

This is a scenario to introduce the basics of Git using the Command Line Interface. The virtual machine (VM) on the right will be using the Bash shell on the Ubuntu operating system. However, this should work the same using most shells and operating systems, with slight differences here and there. But for the most part Bash should work pretty much the same across all platforms. So we'll start there.

Click 'Start Scenario' button below to start.

(Fans of other shells feel free to fork this repo and make another tutorial specifying the differences specific to your shell.)


Thanks for trying out this tutorial.

For more try my katacoda profile

Intro to Git CLI

Step 1 of 8

Step 1

Spin up VM

This should have started automatically and should be progressing in the pane to the right -->

Note: you can click the commands below and they will be pasted and executed into the terminal on the right. However, if you want to learn I recommend you type them.


^ This command will output the hostname of our VM.

echo $SHELL

^ This command will output the name of the running shell of our VM which should be /bin/bash.


^ The whoami command will output your username.


^ The w command will output the usernames of all users currently logged into the system.

Creating Katacoda Scenarios

Thanks for creating Katacoda scenarios. This tab is designed to help you as an author have quick access the information you need when creating scenarios.

This tab will not be visible to users.

Here are some useful links to get you started.

Running Katacoda Workshops

If you are planning to use Katacoda for workshops, please contact [email protected] to arrange capacity.

Debugging Scenarios

Below is the response from any background scripts run or files uploaded. This stream can aid debugging scenarios.

If you still need assistance, please contact [email protected]