Skip to content

Commit c8da87f

Browse files
committed
Merge pull request kbroman#2 from swihart/gh-pages
fork.md clarification and addition
2 parents a22a4a4 + ef97245 commit c8da87f

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

pages/fork.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,36 @@ Say you want to contribute changes to someone else's repository (eg,
3232
`git://github.com/` in the second case. I'm not sure why these need
3333
to be the way they are, but that's what works for me.
3434

35+
- Also note the first myfriend does not need to be the same as the username of `myfriend`. You could very well choose:
36+
37+
$ git remote add repo_nickname git://github.com/myfriend/the_repo
38+
39+
- To check this `remote add` set up:
40+
41+
$ git remote -v
42+
3543
- Make changes to files.
3644

3745
- `git add` and `git commit` those changes
3846

3947
- `git push` them back to [github](http://github.com). These will go
4048
to _your version_ of the repository.
4149

50+
- Note: if you get an error like:
51+
52+
error: src refspec master does not match any.
53+
error: failed to push some refs to '[email protected]:username/the_repo'
54+
55+
Then try `git push origin HEAD:gh-pages` [stackoverflow.](http://stackoverflow.com/questions/4181861/src-refspec-master-does-not-match-any-when-pushing-commits-in-git) Typing `git show-ref` can show what reference to put after HEAD.
56+
4257
- Go to _your version_ of the repository on github.
4358

4459
- Click the “Pull Request” button at the top.
4560

4661
- Note that your friend's repository will be on the left and _your
4762
repository_ will be on the right.
4863

49-
- Give a short explaination of the changes and click the “Send
50-
pull request” button.
64+
- Click the green button "Create pull request". Give a succinct and informative title, in the comment field give a short explanation of the changes and click the green button "Create pull request" again.
5165

5266

5367
### Pulling others' changes

0 commit comments

Comments
 (0)