Slide 1

Slide 1 text

Make Your First Contribution on ____________ Miguel Grinberg @miguelgrinberg

Slide 2

Slide 2 text

About me

Slide 3

Slide 3 text

About me

Slide 4

Slide 4 text

About me http://blog.miguelgrinberg.com

Slide 5

Slide 5 text

About me

Slide 6

Slide 6 text

Do you have what it takes?

Slide 7

Slide 7 text

YES! YES!

Slide 8

Slide 8 text

Where do you start?

Slide 9

Slide 9 text

Learn by lurking

Slide 10

Slide 10 text

Learn by doing

Slide 11

Slide 11 text

Be a good guest

Slide 12

Slide 12 text

Getting ready

Slide 13

Slide 13 text

Create a free GitHub account

Slide 14

Slide 14 text

Install git

Slide 15

Slide 15 text

Learn the unix command line

Slide 16

Slide 16 text

The 10,000 foot view

Slide 17

Slide 17 text

gremlin16/mortgage a.k.a “upstream” you/mortgage a.k.a. “origin” ~/mortgage $ _ Pull Push Merge The GitHub flow Pull Request

Slide 18

Slide 18 text

git branching master feature-1 feature-2 feature-3

Slide 19

Slide 19 text

Let’s get our hands dirty!

Slide 20

Slide 20 text

Getting the code gremlin16/mortgage you/mortgage FORK git clone ~/mortgage $ _ git clone https://github.com/ username/repo git config user.email your-email-address git remote add upstream https://github.com/ username/repo

Slide 21

Slide 21 text

Making changes in a branch ~/mortgage my-feature-branch $ _ ~/mortgage my-feature-branch $ _ ~/mortgage master $ _ git checkout -b do some work git checkout -b feature-branch-name

Slide 22

Slide 22 text

Saving your branch you/mortgage my-feature-branch ~/mortgage my-feature-branch $ _ ~/mortgage my-feature-branch $ _ git add/commit git push git add file(s) git commit -m " commit-message " git push origin feature-branch-name

Slide 23

Slide 23 text

Submitting the contribution you/mortgage my-feature-branch gremlin16/mortgage pull request PULL REQUEST merge gremlin16/mortgage master

Slide 24

Slide 24 text

Syncing with upstream ~/mortgage master $ _ ~/mortgage master (stale) $ _ ~/mortgage my-feature-branch $ _ git checkout git pull git checkout master git pull upstream master

Slide 25

Slide 25 text

Cleaning up local branches ~/mortgage master $ _ ~/mortgage master $ _ git branch -D git branch -D feature-branch-name

Slide 26

Slide 26 text

Submitting a contribution v2 you/mortgage my-feature-branch gremlin16/mortgage pull request PULL REQUEST merge ~/mortgage my-feature-branch $ _ gremlin16/mortgage master review (s) git push $ _ ~/mortgage my-feature-branch git commit

Slide 27

Slide 27 text

Thank You! Questions? @miguelgrinberg [email protected]