Skip to content

Commit 5a73524

Browse files
brabojclaude
andcommitted
docs: clarify no-bare-repo setup in push scenario
State explicitly that there is no bare repo, no GitHub, no central server — just two non-bare repos pushing directly to each other. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ea296d4 commit 5a73524

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

chapters/recipes/bare-repositories.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,10 @@ To understand why, remember that a push only updates the branch
121121
reference inside `.git/` — it does **not** touch the working tree.
122122
These are two separate operations, and only the first one happens.
123123

124-
Imagine Alice and Bob working on the same local network. Bob has
125-
Alice's repository configured as a remote (pointing directly at her
126-
machine, not at a server like GitHub). This means Bob can push
127-
commits straight into Alice's `.git/` directory — no fetch required
128-
on Alice's side.
124+
Imagine Alice and Bob working on the same network with **no bare
125+
repository in between** — no GitHub, no central server. Bob has
126+
Alice's non-bare repository configured as his remote, so he pushes
127+
directly into her `.git/` directory.
129128

130129
1. Alice checks out `main`. Her working tree has the files from
131130
commit `A`.

0 commit comments

Comments
 (0)