Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"git add" doesn't work in Power Shell #518

Open
WeitiHuang opened this issue Sep 29, 2015 · 2 comments
Open

"git add" doesn't work in Power Shell #518

WeitiHuang opened this issue Sep 29, 2015 · 2 comments
Labels

Comments

@WeitiHuang
Copy link
Collaborator

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 <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." 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 <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." 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]>
@nathanv
Copy link
Collaborator

nathanv commented Sep 29, 2015

@1walterh you don't need to add a file that is tracked by git. It has already been added. The git add command won't do anything. if you touch a new file... you will have to add that.

@patrickmckenna
Copy link
Collaborator

@1walterh Odd. What happens if you have the output of git status as shown, type git add ., then run git status again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants