Skip to content

Commit 52c8003

Browse files
bfieldsJunio C Hamano
authored andcommitted
user-manual: fix clone and fetch typos
More typo fixes from Santi Béjar, plus a couple other mistakes I noticed along the way. Cc: Santi Béjar <[email protected]> Signed-off-by: "J. Bruce Fields" <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 53a5824 commit 52c8003

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Documentation/user-manual.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,12 +1836,12 @@ Now, assume your personal repository is in the directory ~/proj. We
18361836
first create a new clone of the repository:
18371837

18381838
-------------------------------------------------
1839-
$ git clone --bare proj.git
1839+
$ git clone --bare ~/proj proj.git
18401840
-------------------------------------------------
18411841

1842-
The resulting directory proj.git will contains a "bare" git
1843-
repository--it is just the contents of the ".git" directory, without
1844-
a checked-out copy of a working directory.
1842+
The resulting directory proj.git contains a "bare" git repository--it is
1843+
just the contents of the ".git" directory, without a checked-out copy of
1844+
a working directory.
18451845

18461846
Next, copy proj.git to the server where you plan to host the
18471847
public repository. You can use scp, rsync, or whatever is most
@@ -2372,9 +2372,8 @@ $ git config remote.example.fetch master:refs/remotes/example/master
23722372
then the following commands will all do the same thing:
23732373

23742374
-------------------------------------------------
2375-
$ git fetch git://example.com/proj.git master:ref/remotes/example/master
2376-
$ git fetch example master:ref/remotes/example/master
2377-
$ git fetch example example/master
2375+
$ git fetch git://example.com/proj.git master:refs/remotes/example/master
2376+
$ git fetch example master:refs/remotes/example/master
23782377
$ git fetch example
23792378
-------------------------------------------------
23802379

0 commit comments

Comments
 (0)