Exercise - A guided tour of GitHub
In this lab, you will get started using GitHub in less than an hour. This exercise guides you through everything you need to start contributing on GitHub. You'll learn about repositories, branches, commits, and pull requests through hands-on practice.
You will learn how to:
- Create a branch
- Commit a file
- Open a pull request
- Merge your pull request
This lab takes approximately 60 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 the fundamentals of working with GitHub repositories.
Note: This exercise is hosted on GitHub Skills and provides an interactive learning experience. You will follow step-by-step instructions within the GitHub repository, and the exercise will automatically validate your actions.
The exercise consists of the following activities:
-
Start a web browser and navigate to the exercise repository: https://github.com/skills-dev/introduction-to-github
-
On the exercise page, select the Use this template button to copy the exercise to your GitHub account.
Note: Simply copy the exercise to your account, then give GitHub about 20 seconds to prepare the first lesson, then refresh the page.
-
Follow the instructions on the repository's README to complete all the challenges.
Note: The exercise will guide you through creating branches, committing files, opening pull requests, and merging changes. Each step will be validated automatically.
-
Work through each step in the exercise, following the prompts and instructions provided in the README and in the issues/pull requests that the exercise creates for you.
-
When you finish all the challenges, you will have created a short Markdown file you can use as your profile README.
What you've learned
After completing this exercise, you should be able to:
- Understand what repositories, branches, commits, and pull requests are
- Create and manage branches in a repository
- Make commits to save your work
- Open pull requests to propose changes
- Review and merge pull requests
- Use GitHub's web interface effectively
Congratulations! You've completed the "A guided tour of GitHub" exercise.