2016-09-17 7 views
0

上では動作しません。 例があります:のgit addは一つのフォルダ

git status 

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) 
    (commit or discard the untracked or modified content in submodules) 

     modified: java/shadasviar (modified content, untracked content) 

git add . 
git status 


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) 
    (commit or discard the untracked or modified content in submodules) 

     modified: java/shadasviar (modified content, untracked content) 

それが何をすることができ、どのようにそれを解決するために?

+0

これは本当に奇妙です、あなたはすでにgit add java/*を試していますか? – jonathanrz

+0

@jonathanrz、はい、java/shadasviar/project/MainActivity.javaのサブディレクトリからいくつかの具体的なファイルを追加しようとしましたが、結果もなく、.gitフォルダを削除して再作成しましたが、hasen't – Shadasviar

+0

"git add -A"で試してみることができますか? – jonathanrz

答えて

0

すべての.gitフォルダをすべてのサブディレクトリから削除することが役に立ちました。

関連する問題