Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

The Windows path in 2.1 is using the wrong path separator

Đang mở Phù hợp với người mới
#2,091 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu từ mục 2.1 được liên kết và tìm trong mã nguồn của sách ví dụ Windows chứa C:/Users/user/my_project. Cập nhật ví dụ đó để sử dụng dấu phân cách đường dẫn Windows được mong đợi, sau đó xác minh rằng website và PDF đã được kết xuất hiển thị đường dẫn đã được sửa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
CSS
Star
6.6k
Fork
2.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của progit/progit2

Tất cả issue của progit/progit2

Issue tương tự

Thêm issue về Documentation

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.