Exercise - Try out Git
In this lab, you will learn Git fundamentals through hands-on exercises. This exercise checks your knowledge of Git fundamentals, including version control concepts, configuring your identity, creating and committing to repositories, exploring history, working with branches, and basic collaboration workflows.
You will learn how to:
- Understand version control concepts
- Configure your Git identity
- Create and commit to repositories
- Explore repository history
- Work with branches
- Use basic collaboration workflows
This lab takes approximately 5 minutes to complete.
Before you start
To complete the lab, you need:
- A GitHub user account. If you don't have one, you can create a new account. If you need instructions on how to create a GitHub account, refer to the article Creating an account on GitHub.
- A web browser with access to the internet.
Complete the exercise on GitHub
In this exercise, you'll complete a series of guided challenges on GitHub to learn Git fundamentals.
Note: This exercise is hosted on GitHub and provides an interactive learning experience. You will follow step-by-step instructions within the GitHub repository.
The exercise consists of the following activities:
-
Start a web browser and navigate to the exercise page: https://github.com/skills/introduction-to-git
-
On the exercise page, select the Start the exercise on GitHub button. This will take you to a public GitHub template repository.
-
Follow the instructions on the repository's README to complete all the challenges.
Note: You don't need to modify any of the workflow files to complete this exercise. Altering the contents in this workflow can break the exercise's ability to validate your actions, provide feedback, or grade the results.
-
Work through each step in the exercise, following the prompts and instructions provided.
-
When you finish all the challenges, you will have successfully completed the exercise.
What you've learned
After completing this exercise, you should be able to:
- Understand the basics of version control with Git
- Configure your Git identity
- Create and work with Git repositories
- Make commits and explore history
- Work with branches
- Understand basic Git collaboration workflows
Congratulations! You've completed the "Try out Git" exercise.