Skip to content

Commit af1ee2a

Browse files
committed
Remotes: repository from scratch
1 parent e2ddb31 commit af1ee2a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/remotes.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ Then, Alice will see the forked repository on her user space:
385385
Alice can then add the forked repository where she can *push* push changes:
386386

387387
```java
388-
$ git remote add git@github.com:aliceuser2020/my-first-project.git
388+
$ git remote add origin git@github.com:aliceuser2020/my-first-project.git
389389

390390
$ git remote -v
391391
origin git@github.com:aliceuser2020/my-first-project.git (fetch)
@@ -396,7 +396,7 @@ How does she add the upstream remote?
396396

397397

398398
```java
399-
$ git remote add upstream git@github.com:bob/my-first-project.git
399+
$ git remote add upstream git@github.com:bobuser2020/my-first-project.git
400400

401401
$ git remote -v
402402
origin git@github.com:aliceuser2020/my-first-project.git (fetch)
@@ -410,7 +410,8 @@ upstream git@github.com:bobuser2020/my-first-project.git (push)
410410

411411

412412
```java
413-
$git graph
413+
$ git fetch upstream master
414+
$ git graph
414415
* 2e56d0a (HEAD -> main, upstream/main, origin/main, origin/HEAD) text of exercise git diff usage
415416
* 22a7316 Adding yet more lectures
416417
* 0ddb791 Adding some more of the lectures

0 commit comments

Comments
 (0)