3

Changes not staged for commitを実行した後にアイテムを取得するのはなぜgit add .ですか?

> git add .
> git st 

# 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:   bin/ls-- (modified content, untracked content)
#

これは続きRed Hat 4.1.2-50ますgit 1.7.10.

4

2 に答える 2

10

試してgit add -Aからステータスを確認してコミットします

于 2015-04-21T13:50:40.440 に答える
3

サブモジュールのようbin/lsです。

cdこのディレクトリに入って実行するgit statusと、どのコンテンツが変更され、追跡されていないかが表示され、それを sumbodule のベース リポジトリにコミットできるようになります。

その後、サブモジュールのリポジトリの HEAD に新しいコミットがある場合git add、メイン リポジトリでこの変更を行い、そこにコミットできます。

于 2013-01-16T23:28:46.140 に答える