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.
- 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
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!
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 [email protected]
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
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.
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
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 [email protected]: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 themgit pull
: doesgit fetch
andgit merge
. This results in an extra commit.git pull --rebase
: leaves your commits in a straight line without branches
Click the button at the top that says "Issues" and then the green button to the right.
Click the button at the top that says "Pull Requests" and then the green button to the right.
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.
Great websites for people who are new to coding/contributing to open source: