Skip to content

Commit 47680d6

Browse files
committed
Remotes: repository from scratch
1 parent f33cf8d commit 47680d6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/remotes.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,6 @@ Protocols:
9090

9191
---
9292

93-
94-
95-
```java
96-
$git graph
97-
* 2e56d0a (HEAD -> main, upstream/main, origin/main, origin/HEAD) text of exercise git diff usage
98-
* 22a7316 Adding yet more lectures
99-
* 0ddb791 Adding some more of the lectures
100-
* 3ff9f8f Adding some of the lectures
101-
```
102-
103-
---
104-
10593
## Working with remotes
10694
One can push or fetch/pull to or from remotes:
10795

@@ -429,6 +417,18 @@ upstream git@github.com:bobuser2020/my-first-project.git (fetch)
429417
upstream git@github.com:bobuser2020/my-first-project.git (push)
430418
```
431419

420+
---
421+
422+
423+
424+
```java
425+
$git graph
426+
* 2e56d0a (HEAD -> main, upstream/main, origin/main, origin/HEAD) text of exercise git diff usage
427+
* 22a7316 Adding yet more lectures
428+
* 0ddb791 Adding some more of the lectures
429+
* 3ff9f8f Adding some of the lectures
430+
```
431+
432432
Alice can used the forked repository as the *origin* where she can put her changes. The *upstream* remote
433433
will help her to be updated with the latest changes from Bob (Github will show messages) but she won't be
434434
able to commit changes to Bob's repo (without permissions).

0 commit comments

Comments
 (0)