Skip to content

Commit e2ddb31

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

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

docs/remotes.md

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -382,29 +382,17 @@ Then, Alice will see the forked repository on her user space:
382382

383383
---
384384

385-
How do we add the upstream remote?
385+
Alice can then add the forked repository where she can *push* push changes:
386386

387-
```mermaid
388-
graph TD
389-
390-
bob{"Bob's repo"}
391-
origin["origin"]
392-
style origin fill:#ffffff,stroke:#ffffff,color:#ff0000
393-
upstream["upstream"]
394-
style upstream fill:#ffffff,stroke:#ffffff,color:#ff0000
395-
upstream -.-> bob
396-
origin -.-> alicef
397-
398-
alicef(["Alice fork"])
399-
alicel(["Alice local"])
400-
401-
bob --> alicef
402-
403-
alicef --> alicel
404-
alicel -.-> bob
387+
```java
388+
$ git remote add git@github.com:aliceuser2020/my-first-project.git
389+
390+
$ git remote -v
391+
origin git@github.com:aliceuser2020/my-first-project.git (fetch)
392+
origin git@github.com:aliceuser2020/my-first-project.git (push)
405393
```
406394

407-
---
395+
How does she add the upstream remote?
408396

409397

410398
```java

0 commit comments

Comments
 (0)