File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -64,14 +64,14 @@ file, but I don't.
6464Now, follow the second set of instructions, &ldquo ; Push an existing
6565repository...&rdquo ;
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
7070Actually, 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
7575former is for use with
7676[ ssh] ( http://en.wikipedia.org/wiki/Secure_Shell ) (if you set up ssh as
7777I mentioned in "[ Your first time] ( first_time.html ) ", then you won't
You can’t perform that action at this time.
0 commit comments