Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Your first contribution #2

Open
github-learning-lab bot opened this issue Jul 29, 2022 · 1 comment
Open

Your first contribution #2

github-learning-lab bot opened this issue Jul 29, 2022 · 1 comment

Comments

@github-learning-lab
Copy link

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

@github-learning-lab
Copy link
Author

Step 4: Create a branch

Let’s complete the first step of the GitHub flow: creating a branch 📖.

Creating a branch

Creating a branch

📺 Video: Branches

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

  1. Open your preferred command line interface, which we'll call your shell from now on.
  2. Clone this repository:
    git clone https://github.com/hkdctol/github-slideshow.git
  3. Navigate to the repository in your shell:
    cd github-slideshow
  4. Create a branch, use whatever name you like. Feel free to use the suggested name below.
    git branch my-slide
  5. Push the branch to GitHub:
    git push --set-upstream origin <BRANCH-NAME>
    

I'll respond when I detect a new branch has been created in this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants