Skip to content

Commit c207271

Browse files
committed
small changes in init and fork
1 parent dafec7f commit c207271

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

pages/fork.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ Say you want to contribute changes to someone else's repository (eg,
1717

1818
- Type
1919

20-
$ git clone git@github.com:username/the_repo.git
20+
$ git clone git@github.com:username/the_repo
2121

2222
where `username` is _your_ username.
2323

2424
- You'll now have a local copy of _your version_ of that repository.
2525

2626
- Add a connection to the original owner's repository.
2727

28-
$ git remote add myfriend git://github.com/myfriend/the_repo.git
28+
$ git remote add myfriend git://github.com/myfriend/the_repo
2929

30-
- Note the distinction between `git@github...` in the first case and
31-
`git://github...` in the second case. I'm not sure why these need
30+
- Note the distinction between `git@github.com:` in the first case and
31+
`git://github.com/` in the second case. I'm not sure why these need
3232
to be the way they are, but that's what works for me.
3333

3434
- Make changes to files.
@@ -114,7 +114,7 @@ You don't have to use the github website for this.
114114
- Add a connection to your friend's version of the github repository,
115115
if you haven't already.
116116

117-
$ git remote add myfriend git://github.com/myfriend/the_repo.git
117+
$ git remote add myfriend git://github.com/myfriend/the_repo
118118

119119
- Pull his/her changes.
120120

pages/init.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ file, but I don't.
6464
Now, follow the second set of instructions, “Push an existing
6565
repository...”
6666

67-
$ git remote add origin git@github.com:username/new_repo.git
67+
$ git remote add origin git@github.com:username/new_repo
6868
$ git push -u origin master
6969

7070
Actually, the first line of the instructions will say
7171

72-
$ git remote add origin https://github.com/username/new_repo.git
72+
$ git remote add origin https://github.com/username/new_repo
7373

74-
But I use `git@github...` rather than `https://github...`, as the
74+
But I use `git@github.com:username/new_repo` rather than `https://github.com/username/new_repo`, as the
7575
former is for use with
7676
[ssh](http://en.wikipedia.org/wiki/Secure_Shell) (if you set up ssh as
7777
I mentioned in "[Your first time](first_time.html)", then you won't

0 commit comments

Comments
 (0)