git – modified content, untracked content

Yet, another issue :)

# Changes not staged for commit:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#   (commit or discard the untracked or modified content in submodules)
#
#	modified:   XCode/Apple/F1000W (modified content, untracked content)

The point here is, that Xcode uses git for it’s internal snapshot repository.

For me, it is not important, so I simply removed the file

./XCode/Apple/F1000W/.git

Comments (1)

anonymousMarch 20th, 2014 at 8:45 am

add this to bashrc, source it and type “gitsubupdate”, every thing get clean,LUCK!
# gitsubupdate
function gitsubupdate()
{
fn=`git commit | grep ‘modified:’ | sed -e ‘s/.*: *\(.*\) .* .*/\1/g’`
for name in $fn
do
rm -rf $name
rm -rf ‘./git/submodule/’$name
git submodule init
git submodule update
done
}