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

"git add" doesn't work in Power Shell

Open
#518 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C
Stars
12
Forks
37
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the commands in PowerShell with the modified README.md and the file named "another file", starting with git status and git add. Determine why neither file becomes staged and document or verify the expected staging behavior, including paths containing spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.