GIT for Beginners

GIT Introduction

Lab Introduction

Hello, my name is Mumshad Mannambeth, and I will guide you through the demos and labs in this lesson. This project-based course is designed to engage both developers and operations professionals by focusing on practical Git usage rather than project complexity. In this collaborative environment, you'll work with a team that includes primary authors Sarah, Max, and Tej, along with Tom, an experienced writer who reviews the work.

Each lecture is followed by an interactive lab activity that opens directly in your browser. You will have access to a terminal connected to a workstation along with a quiz portal featuring 10 to 15 tasks per lab. The tasks fall into two categories:

Task Types

  1. Exploratory Tasks
    These tasks require you to explore the environment and gather information using standard Linux or Git commands combined with your problem-solving skills. For example, you could run a command like:

    sarah@dev01:~$ cat /etc/*r
    

    to help determine the correct answer. Once you identify the right solution, you move on to the next question.

  2. Simulated Real-World Tasks
    These scenarios mimic typical operations such as installing Git, initializing repositories, committing changes, branching, pushing and pulling code from remote repositories, and managing pull requests. After you complete a task, click the "check" button to validate your work. Your submission will be tested immediately. In case of an error, you will receive precise feedback to help you correct the issue as many times as needed.

Note

If a task error occurs, such as:

git is not installed on dev01

please refer to the hints section, which provides detailed commands and steps to resolve the issue. Once you correct the problem, click the "check" button again to confirm the task is successfully completed.

The image shows a prompt asking to identify the operating system for installing GIT, with options: Redhat, CentOS, Ubuntu, and Debian.

The image instructs to install GIT using `sudo`, with a link to installation documentation and a "Check" button.

Additionally, you have the option to skip a question by clicking the "next" button located in the top right corner.

Git Integration and Collaboration

Our labs feature a lightweight version of GitHub, known as Git, as the hosted Git service. You can access this service by clicking the button at the top of your terminal. This integration offers you a real-world team collaboration experience by allowing you to push your code to a remote repository accessible by your teammates. Note that this remote Git integration is introduced only after the initial labs when the focus shifts towards remote repositories.

The image shows instructions for installing Git, including using `sudo` for permissions, with a link to documentation and a "Checking..." status.

The image is a webpage promoting Gitea, a self-hosted Git service, highlighting its easy installation, cross-platform compatibility, lightweight nature, and open-source availability.

That’s it for now. I hope you are excited to dive into these labs and gain hands-on experience with Git. Let's jump right in!

Watch Video

Watch video content

Practice Lab

Practice lab

Previous
Install GIT