Getting Started with GitHub and Creating Branches
Learn GitHub basics and branch creation. Explore version control best practices to collaborate efficiently on software projects.
At a Glance
In this guided project, you will set up a GitHub account, then create and modify a repository on your GitHub page. You will also create and edit a new branch of this repository, then merge the changes into your main branch.
GitHub is a popular online hosting service for repositories, which are copies of an entire project, including its revision history. All files in a repository reside in branches, or separate lines of development. Teams designate one branch as the main branch, the one that stores the finished, deployable code. Users create separate branches to work on new features or edit existing code, then integrate these changes into the main branch.
In this guided project, you will set up a GitHub account and create a repository on your GitHub page. Then you will explore ways to modify your repository, including editing an existing file, creating a new file, and uploading a file from your computer. You will discover how to commit, or save, each change.
You will then discover how to use GitHub’s branching system to update a repository. You will add a new branch to your repository. This branch starts as an exact copy of the repository’s main branch. You will add a file to the new branch, then commit this change to the branch. Next, you will issue a pull request PR, a mechanism by which you notify others that your changes are ready for review. After reviewing these changes, you will merge them into your main branch.
Completing this guided project will prepare you to create and update repositories on GitHub and to explore this software’s more complex collaboration features.
A Look at the Project Ahead
Once you have completed this project, you’ll be able to:
- Describe GitHub
- Create a GitHub account
- Add a repository to GitHub
- Create and edit a file in a GitHub repository
- Upload and commit a file to a GitHub repository
- Create a branch of a GitHub repository
- Commit changes to a child branch
- Open a pull request
- Merge a pull request into the main branch
What You’ll Need
Just a web browser and a personal email account! Everything else is provided to you on GitHub.
Your Instructors
- Romeo Kienzler
- Malika Singla
There are no reviews yet.