Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

The Windows path in 2.1 is using the wrong path separator

Offen Anfängerfreundlich
#2,091 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
git
Bereich
documentation

Rechercherichtung

Beginne mit dem verlinkten Abschnitt 2.1 und durchsuche den Buchquelltext nach dem Windows-Beispiel, das C:/Users/user/my_project enthält. Aktualisiere dieses Beispiel so, dass es den erwarteten Windows-Pfadtrenner verwendet, und überprüfe anschließend, dass die gerenderte Website und das PDF den korrigierten Pfad anzeigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
There's no existing/similar bug report.
  • I have searched the existing issues
This report is about a single actionable bug.
  • I'm reporting a single actionable bug
This report is about the ProGit book, version 2, English language.
  • This bug is not about a translation or old version
Bug covers book website/pdf
  • I confirm the bug is about the book as found on the website/pdf
Problem is present in the Pro Git book on the website?
  • This bug also affects the Pro Git book as published on the website.
Which version of the book is affected?

Source files

Describe the bug:

The book shows in section 2.1:

Initializing a Repository in an Existing Directory

If you have a project directory that is currently not under version control and you want to start controlling it with Git, you first need to go to that project’s directory. If you’ve never done this, it looks a little different depending on which system you’re running:

for Linux:

cd /home/user/my_project

for macOS:

cd /Users/user/my_project

for Windows:

cd C:/Users/user/my_project

The path separator in Windows is wrong - it should be C:\Users\user\my_project, not C:/Users/user/my_project

Steps to reproduce:
  1. Go to 'section 2.1, initializing a repository in an existing directory'
  2. See error
Expected behavior:

I expected the path separator \ to show.

Screenshots:
Image
Additional context:

No response

Device

laptop

Operating system

macOS 27.2 Beta 1

Browser/application + version

Safari 27.2

Vorherrschende Sprache
CSS
Sterne
6.6k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus progit/progit2

Alle Issues in progit/progit2

Ähnliche Issues

Weitere Issues zu Documentation

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.