Skip to content

🐣 A repo for practicing forking, finding issues, submitting PRs and undergoing code reviews for open source libraries.

License

Notifications You must be signed in to change notification settings

VerteDinde/intro-to-open-source

 
 

Repository files navigation

Workshop:Introduction to Open Source 🚀

This repository is for our Women Who Code 2017 Introduction to Contributing to Open Source Workshop. This repo serves as a safe test space for those who wish to practice git, making pull requests and responding to issues.

Workshop Agenda

  • Overviewing GitHub and Releases
  • Reviewing the Basics and Learning a Codebase
  • Your First Open Source Project Commit (look for First Timer's Only PRs)
  • What to expect - will my PR be merged in right away? How do deal with feedback?
  • Becoming a Regular Contributor

Usage

In the Issues tab, we have a variety of issues with different labels that you can choose. Choose from any of the labels and submit a PR with your changes. We'll review your PR and conduct a mock code review, before ultimately merging your PR.

If you have any questions about working in existing open source libraries, open a new issue! Hello!

Git Config

First you should tell git your name and email (You can set specific ones for different repositories if you wish.). So if you're Scott Hanselman, you'd do it like this:

git config --global user.name "Scott Hanselman"
git config --global user.email scott@hanselman.com

If you want to set up a default editor you can set it using:

git config --global core.editor vim

To see what configuration settings you have:

git config --list

Clone and fork this repo

Before contributing, fork this repo by pressing the "Fork" button inside the Women Who Code repo. This will create your own version of the repo.

To clone the respository down to your laptop, click the green clone or download button above and copy the link.

After copying the link, go to the path on your own computer that you want to clone this to. For organization it is more clear when there are separate directories for different repo owners.

Making a new branch

Say you want to make changes on a branch other than master. This is common when wanting to separate different changes. If you want to have the exact

Pulling down new content

In your terminal, run git remote -v to see all of your remotes. Add the Women Who Code repo as an upstream that you can pull from by adding the following:

git remote add git@github.com:wwcodeportland/intro-to-open-source.git

This will allow you to fetch the most recent changes from upstream.

  • git fetch: fetches the changes, but doesn't merge them
  • git pull: does git fetch and git merge. This results in an extra commit.
  • git pull --rebase: leaves your commits in a straight line without branches

Contributing to Open Source

Creating an Issue

Click the button at the top that says "Issues" and then the green button to the right. create-issue

Creating a Pull Request

Click the button at the top that says "Pull Requests" and then the green button to the right. create-pr If the pull request (PR) is to fix an existing issue, you can reference it by #somenumber, e.g. #2. It's common to say "Fixes #somenumber" so when the PR is merged, it closes the corresponding issue.

Tip: Include the issue the PR fixes in the commit message and have descriptive messages.

Resources

Great websites for people who are new to coding/contributing to open source:

Some Git/GitHub Resources

Contributing to an Open Source Project

About

🐣 A repo for practicing forking, finding issues, submitting PRs and undergoing code reviews for open source libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 50.7%
  • HTML 28.5%
  • JavaScript 12.4%
  • Python 8.4%