Your first contribution
github-learning-lab opened this issue · comments
Introduction to GitHub flow
Now that you're familiar with issues, let's use this issue to track your path to your first contribution.
People use different workflows to contribute to software projects, but the simplest and most effective way to contribute on GitHub is the GitHub flow.
📺 Video: Understanding the GitHub flow
Read below for next steps
Step 4: Create a branch
Let’s complete the first step of the GitHub flow: creating a branch 📖.
Creating a branch
Creating a branch
You just learned how to create a branch—the first step in the GitHub flow.
Branches are an important part of the GitHub flow because they allow us to separate our work from the main
branch. In other words, everyone's work is safe while you contribute.
Tips for using branches
A single project can have hundreds of branches, each suggesting a new change to the main
branch.
The best way to keep branches organized with a team is to keep them concise and short-lived. In other words, a single branch should represent a single new feature or bug fix. This reduces confusion among contributors when branches are only active for a few days before they’re merged 📖 into the main
branch.
⌨️ Activity: Your first branch
- Navigate to the Code tab
- Click Branch: main in the drop-down
- In the field, enter a name for your branch, like
my-slide
- Click Create branch: or press the Enter key to create your branch