githubteacher / githubteacher/github-for-developers-sept-2015

"git add" doesn't work in Power Shell

Đang mở
#518 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
C
Star
12
Fork
37
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

``` bash
C:\GitHub\github-for-developers-sept-2015 [master +0 ~2 -0]> git status
# On branch master
# Your branch is behind 'origin/master' by 27 commits, and can be fast-forwarded
.
# (use "git pull" to update your local branch)
#
# Changes not staged for commit:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
# modified: README.md
# modified: another file
#
no changes added to commit (use "git add" and/or "git commit -a")
C:\GitHub\github-for-developers-sept-2015 [master +0 ~2 -0]> git add README.md
C:\GitHub\github-for-developers-sept-2015 [master +0 ~2 -0]> git add '.\Another
file'
C:\GitHub\github-for-developers-sept-2015 [master +0 ~2 -0]> git status
# On branch master
# Your branch is behind 'origin/master' by 27 commits, and can be fast-forwarded
.
# (use "git pull" to update your local branch)
#
# Changes not staged for commit:
# (use "git add ..." to update what will be committed)
# (use "git checkout -- ..." to discard changes in working directory)
#
# modified: README.md
# modified: another file
#
no changes added to commit (use "git add" and/or "git commit -a")
C:\GitHub\github-for-developers-sept-2015 [master +0 ~2 -0]>
```

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Tái hiện các lệnh trong PowerShell với README.md đã sửa đổi và tệp có tên "another file", bắt đầu bằng git status và git add. Xác định lý do cả hai tệp đều không được đưa vào staging, đồng thời ghi lại hoặc xác minh hành vi staging dự kiến, bao gồm cả các đường dẫn chứa khoảng trắng.

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

Đánh giá

Công nghệ
git, powershell
Lĩnh vực
cli
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

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.