2

私はgitを介してディレクトリにあるすべてのものを追加しようとしています。ただし、特定の 1 つのディレクトリについては、フォルダーは読み込まれますが、コンテンツは読み込まれません。使ってみた

git add -A

しかし返された

# On branch master
# 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:   sendgrid-php (untracked content)
#
no changes added to commit (use "git add" and/or "git commit -a")

私の変更をコミットしようとすると。ここで何が問題になる可能性がありますか?

4

2 に答える 2

1

1つの可能な方法は

git add directory/*

または、作成する前にそのディレクトリからファイルを既にコミットしている場合

git commit -a

これにより、変更されたすべてのファイルが追加され、コミットされます。

于 2013-02-18T00:39:02.500 に答える
1

ディレクトリsendgrid-phpは git サブモジュールであるため、ディレクトリに CD を挿入してコミットしない限り、git はその中のコンテンツを追跡しません。

于 2013-02-18T00:47:23.430 に答える