Skip to content

Commit fcdab34

Browse files
committed
add note about errors
1 parent b5aa154 commit fcdab34

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

pages/fork.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ Say you want to contribute changes to someone else's repository (eg,
4747
- `git push` them back to [github](http://github.com). These will go
4848
to _your version_ of the repository.
4949

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 'git@github.com: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+
5057
- Go to _your version_ of the repository on github.
5158

5259
- Click the “Pull Request” button at the top.

pages/fork.md~

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ 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

0 commit comments

Comments
 (0)