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

"git add" doesn't work in Power Shell

未关闭
#518 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
C
星标
12
派生
37
PR 合并指标
30 天内没有已合并 PR

描述

``` 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]>
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

在 PowerShell 中使用修改后的 README.md 和名为 "another file" 的文件重现这些命令,从 git status 和 git add 开始。确定为什么这两个文件都没有进入暂存区,并记录或验证预期的暂存行为,包括包含空格的路径。

由索引模型根据 Issue 内容生成。

评估

技术栈
git, powershell
领域
cli
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。