Why does git remember changes, but not let me stage them?
Posted
by Andres Jaan Tack
on Stack Overflow
See other posts from Stack Overflow
or by Andres Jaan Tack
Published on 2010-03-23T07:06:39Z
Indexed on
2010/03/23
7:13 UTC
Read the original article
Hit count: 352
git
|version-control
I have a list of modifications when I run git status
, but I cannot stage them or commit them. How can I fix this?
This occurred after pulling the kernelmode directory from a bare repository somewhere in one huge commit.
% git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: kernelmode/linux-2.6.33/Documentation/IO-mapping.txt
# ...
$ git add .
$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: kernelmode/linux-2.6.33/Documentation/IO-mapping.txt
# ...
© Stack Overflow or respective owner